fix(actions): force insertmode after inserting symbol (#1618)
required after upstream changes to prompt buffer behavior
(see
28134f4e78)
Fixes #1608
This commit is contained in:
@@ -369,6 +369,7 @@ actions.insert_symbol_i = function(prompt_bufnr)
|
|||||||
vim.api.nvim_buf_set_text(0, cursor[1] - 1, cursor[2], cursor[1] - 1, cursor[2], { symbol })
|
vim.api.nvim_buf_set_text(0, cursor[1] - 1, cursor[2], cursor[1] - 1, cursor[2], { symbol })
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.api.nvim_win_set_cursor(0, { cursor[1], cursor[2] + #symbol })
|
vim.api.nvim_win_set_cursor(0, { cursor[1], cursor[2] + #symbol })
|
||||||
|
vim.cmd [[startinsert!]]
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user