Skip to content

Commit

Permalink
update delete_current_dir_session delete_session param
Browse files Browse the repository at this point in the history
  • Loading branch information
doongjohn committed Aug 2, 2024
1 parent 3b9d4c6 commit 09a8d7a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lua/session_manager/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,7 @@ function session_manager.delete_current_dir_session()
if cwd then
local session = config.dir_to_session_filename(cwd)
if session:exists() then
utils.delete_session(session)

-- Clear the active session filename if deleted.
if session.filename == utils.active_session_filename then
utils.active_session_filename = nil
end
utils.delete_session(session.filename)
end
end
end
Expand Down

0 comments on commit 09a8d7a

Please sign in to comment.