From 22d03759f75f9a27df5e2ff95d47e6842696b616 Mon Sep 17 00:00:00 2001 From: Cameron Ring Date: Sun, 1 Sep 2024 08:19:04 -0700 Subject: [PATCH] fix: Clear old config flag if setup called again Came up while looking into #369 --- lua/auto-session/config.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/auto-session/config.lua b/lua/auto-session/config.lua index bd639f1..30bb350 100644 --- a/lua/auto-session/config.lua +++ b/lua/auto-session/config.lua @@ -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 {}