fix: force save (#112)

main
anhoder 2024-02-29 17:04:48 +08:00 committed by GitHub
parent 1de6b48a99
commit b4e09a639a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ function M.save(opt, dir)
end end
-- Do not save the session if the callback returns false...unless it's forced -- Do not save the session if the callback returns false...unless it's forced
if type(config.options.should_autosave) == "function" and not config.options.should_autosave() then if not opt.force and type(config.options.should_autosave) == "function" and not config.options.should_autosave() then
return return
end end
end end