Skip to content

Commit

Permalink
fix: detect cwd_change_handling type correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronr committed Aug 24, 2024
1 parent 92ede7d commit 1ed68e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/auto-session/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ed68e4

Please sign in to comment.