From 1ed68e4684eddeed8a47dac360de347744d896ed Mon Sep 17 00:00:00 2001 From: Cameron Ring Date: Sat, 24 Aug 2024 15:01:23 -0700 Subject: [PATCH] fix: detect cwd_change_handling type correctly --- lua/auto-session/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/auto-session/config.lua b/lua/auto-session/config.lua index 6f3d3eb..4c51d8d 100644 --- a/lua/auto-session/config.lua +++ b/lua/auto-session/config.lua @@ -180,7 +180,7 @@ local function check_old_config_names(config) if config["cwd_change_handling"] - and type(config["cwd_change_handling"] == "table") + and type(config["cwd_change_handling"]) == "table" and config.cwd_change_handling["restore_upcoming_session"] then local old_cwd_change_handling = config.cwd_change_handling or {} -- shouldn't be nil but placate LS