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

This commit is contained in:
Tristan Knight
2024-05-23 03:41:23 +01:00
committed by GitHub
parent 05f4d6f0a9
commit 5665d93988

View File

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