Skip to content

Commit

Permalink
fix(telescope): explicitly return to normal mode after session load (#47
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jedrzejboczar authored Nov 18, 2023
1 parent 07483f4 commit c344bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/possession/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ local session_actions = {
end,
load = function(prompt_buf, entry, _refresh)
actions.close(prompt_buf)
-- For some reason telescope stays in insert mode (#46)
vim.cmd.stopinsert()
session.load(entry.value.name)
end,
delete = function(prompt_buf, entry, refresh)
Expand Down

0 comments on commit c344bec

Please sign in to comment.