fix: after_source callback
parent
0f5f24f4c4
commit
9be6183f96
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue