mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
fix cursor pos for cmds that take cursor pos
This commit is contained in:
@@ -384,8 +384,10 @@ internal.commands = function(opts)
|
|||||||
local cr = vim.api.nvim_replace_termcodes("<cr>", true, false, true)
|
local cr = vim.api.nvim_replace_termcodes("<cr>", true, false, true)
|
||||||
cmd = cmd .. cr
|
cmd = cmd .. cr
|
||||||
end
|
end
|
||||||
vim.cmd [[stopinsert]]
|
vim.schedule(function()
|
||||||
vim.api.nvim_feedkeys(cmd, "t", false)
|
vim.cmd [[stopinsert]]
|
||||||
|
vim.api.nvim_feedkeys(cmd, "t", false)
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user