mirror of
https://github.com/nvim-telescope/telescope.nvim
synced 2024-09-16 21:24:02 +02:00
fix cursor pos for cmds that take cursor pos
This commit is contained in:
parent
e2f926a781
commit
7264df471f
1 changed files with 4 additions and 2 deletions
|
@ -384,8 +384,10 @@ internal.commands = function(opts)
|
|||
local cr = vim.api.nvim_replace_termcodes("<cr>", true, false, true)
|
||||
cmd = cmd .. cr
|
||||
end
|
||||
vim.cmd [[stopinsert]]
|
||||
vim.api.nvim_feedkeys(cmd, "t", false)
|
||||
vim.schedule(function()
|
||||
vim.cmd [[stopinsert]]
|
||||
vim.api.nvim_feedkeys(cmd, "t", false)
|
||||
end)
|
||||
end)
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue