fix cursor pos for cmds that take cursor pos

This commit is contained in:
James Trew
2024-01-07 12:09:20 -05:00
committed by Simon Hauser
parent e2f926a781
commit 7264df471f

View File

@@ -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