Skip to content

Commit

Permalink
fix: force save (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhoder authored Feb 29, 2024
1 parent 1de6b48 commit b4e09a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/persisted/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function M.save(opt, dir)
end

-- 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
end
end
Expand Down

0 comments on commit b4e09a6

Please sign in to comment.