Skip to content

Commit

Permalink
fix: Clear old config flag if setup called again
Browse files Browse the repository at this point in the history
Came up while looking into rmagatti#369
  • Loading branch information
cameronr committed Sep 1, 2024
1 parent 6cd7e4d commit 22d0375
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 22d0375

Please sign in to comment.