fix: #61 `SessionSave` command

main
olimorris 2023-03-13 19:45:24 +00:00
parent 7d91c60135
commit e053ff3348
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ end
function M.save(opt)
opt = opt or {}
-- Do not save the session if the user has manually stopped it
if vim.g.persisting == false or vim.g.persisting == nil then
-- Do not save the session if the user has manually stopped it, but if there's an override, then do it
if (vim.g.persisting == false or vim.g.persisting == nil) and not opt.override then
return
end