fix(builtin.spell_suggest): ciw into black hole register (#3124)

(cherry picked from commit 5665d93988)
This commit is contained in:
Tristan Knight 2024-05-23 03:41:23 +01:00 committed by Simon Hauser
parent 08a28108c2
commit a0bbec2114

View file

@ -1326,7 +1326,7 @@ internal.spell_suggest = function(opts)
action_state.get_current_picker(prompt_bufnr)._original_mode = "i"
actions.close(prompt_bufnr)
vim.cmd("normal! ciw" .. selection[1])
vim.cmd('normal! "_ciw' .. selection[1])
vim.cmd "stopinsert"
end)
return true