fix: cursor move in actions.insert_symbol_i (#1979)

This commit is contained in:
Fabian David Schmidt
2022-06-01 16:52:15 +02:00
committed by GitHub
parent 54be102e20
commit ad19bf6b8e
2 changed files with 2 additions and 1 deletions

View File

@@ -351,7 +351,7 @@ actions.close = function(prompt_bufnr)
require("telescope.pickers").on_close_prompt(prompt_bufnr)
pcall(a.nvim_set_current_win, original_win_id)
if a.nvim_get_mode().mode == "i" then
if a.nvim_get_mode().mode == "i" and picker._original_mode ~= "i" then
pcall(a.nvim_win_set_cursor, original_win_id, { original_cursor[1], original_cursor[2] + 1 })
end
end