From 00d2136d694b1b24f2860a7300342b9ea15a6bc9 Mon Sep 17 00:00:00 2001 From: Ronnie Magatti Date: Sat, 30 Mar 2024 22:24:17 -0600 Subject: [PATCH] Fix not adding filepath --- lua/auto-session/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/auto-session/init.lua b/lua/auto-session/init.lua index d50f986..f30c622 100644 --- a/lua/auto-session/init.lua +++ b/lua/auto-session/init.lua @@ -656,7 +656,7 @@ function AutoSession.RestoreSession(sessions_dir_or_file) local pre_cmds = AutoSession.get_cmds "pre_restore" run_hook_cmds(pre_cmds, "pre-restore") - local cmd = AutoSession.conf.silent_restore and "silent source " or "source " .. file_path + local cmd = AutoSession.conf.silent_restore and "silent source " .. file_path or "source " .. file_path local success, result = pcall(vim.cmd, cmd) if not success then