mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +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
|
end
|
||||||
|
|
||||||
function M.close(picker)
|
function M.close(picker)
|
||||||
picker:close()
|
picker:norm(function()
|
||||||
|
picker:close()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.cancel = "close"
|
M.cancel = "close"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue