Skip to content

Commit

Permalink
Merge pull request #282 from rmagatti/add-silent-restore-option
Browse files Browse the repository at this point in the history
Add silent restore option
  • Loading branch information
rmagatti authored Mar 31, 2024
2 parents 3706430 + d42f0ed commit 22b7ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22b7ca4

Please sign in to comment.