Skip to content

Commit

Permalink
fix cursor pos for cmds that take cursor pos
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestrew committed Jan 7, 2024
1 parent fbdb8df commit f24a625
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/telescope/builtin/__internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f24a625

Please sign in to comment.