mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 03:08:13 +00:00
fix(picker): exit insert mode before closing with <c-c>
to prevent cursor shifting left. Close #956
This commit is contained in:
parent
f821b4a846
commit
71eae96bfa
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ function M.jump(picker, _, action)
|
|||
end
|
||||
|
||||
function M.close(picker)
|
||||
picker:norm(function()
|
||||
picker:close()
|
||||
end)
|
||||
end
|
||||
|
||||
M.cancel = "close"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue