From 546947d442c9684c0dd97bcc6aa75dd5f947f86c Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Thu, 30 Jun 2022 14:56:49 +0200 Subject: [PATCH] fix: spell_suggest if cursor is at last char of word fix #1977 --- lua/telescope/builtin/internal.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 4519b93..8d644fb 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -1233,6 +1233,7 @@ internal.spell_suggest = function(opts) return end + action_state.get_current_picker(prompt_bufnr)._original_mode = "i" actions.close(prompt_bufnr) vim.cmd("normal! ciw" .. selection[1]) vim.cmd "stopinsert"