Skip to content

Commit

Permalink
Merge pull request rmagatti#371 from cameronr/main
Browse files Browse the repository at this point in the history
fix: Clear old config flag if setup called again
  • Loading branch information
cameronr authored Sep 2, 2024
2 parents 6cd7e4d + 22d0375 commit a90aa77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/auto-session/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ end

---@param config? AutoSession.Config
function M.setup(config)
-- Clear the flag in case setup is called again
M.has_old_config = false

---@diagnostic disable-next-line: param-type-mismatch
M.options_without_defaults = vim.deepcopy(config) or {}

Expand Down

0 comments on commit a90aa77

Please sign in to comment.