summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorSimon Hauser <simon.hauser@helsinki-systems.de>2022-06-30 14:56:49 +0200
committerSimon Hauser <simon.hauser@helsinki-systems.de>2022-06-30 14:57:33 +0200
commit546947d442c9684c0dd97bcc6aa75dd5f947f86c (patch)
tree928e406100df32dcc56bd9723d23d84105ed2419 /lua
parenta50352eb2435a75f1d0c7af2e80133e3945fa20a (diff)
fix: spell_suggest if cursor is at last char of word
fix #1977
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/internal.lua1
1 files changed, 1 insertions, 0 deletions
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"