mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(picker): always stopinsert, even when picker is already closed. Should not be needed, but some plugins misbehave. See #579
This commit is contained in:
parent
337b054eda
commit
29becb0ecb
1 changed files with 1 additions and 1 deletions
|
@ -385,10 +385,10 @@ end
|
|||
|
||||
--- Close the picker
|
||||
function M:close()
|
||||
vim.cmd.stopinsert()
|
||||
if self.closed then
|
||||
return
|
||||
end
|
||||
vim.cmd.stopinsert()
|
||||
self.closed = true
|
||||
M.last.selected = self:selected({ fallback = false })
|
||||
M.last.cursor = self.list.cursor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue