fix: after_source callback

main
olimorris 2022-08-13 10:38:02 +01:00
parent 0f5f24f4c4
commit 9be6183f96
1 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ function M.setup(opts)
then then
M.start() M.start()
end end
end end
---Load a session ---Load a session
@ -102,7 +103,7 @@ function M.load(opt)
local session = opt.last and get_last() or get_current() local session = opt.last and get_last() or get_current()
if session and vim.fn.filereadable(session) ~= 0 then if session and vim.fn.filereadable(session) ~= 0 then
utils.load_session(session, config.options.before_save, config.options.after_save) utils.load_session(session, _, config.options.after_source)
end end
if config.options.autosave and (allow_dir() and not ignore_dir()) then if config.options.autosave and (allow_dir() and not ignore_dir()) then