fix: spell_suggest if cursor is at last char of word

fix #1977
This commit is contained in:
Simon Hauser
2022-06-30 14:56:49 +02:00
parent a50352eb24
commit 546947d442

View File

@@ -1233,6 +1233,7 @@ internal.spell_suggest = function(opts)
return return
end end
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"