fix: #61 `SessionSave` command
parent
7d91c60135
commit
e053ff3348
|
|
@ -129,8 +129,8 @@ end
|
||||||
function M.save(opt)
|
function M.save(opt)
|
||||||
opt = opt or {}
|
opt = opt or {}
|
||||||
|
|
||||||
-- Do not save the session if the user has manually stopped it
|
-- 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 then
|
if (vim.g.persisting == false or vim.g.persisting == nil) and not opt.override then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue