summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenghan Bright <senghan.bright@deltaprojects.com>2021-01-06 15:16:46 +0100
committerGitHub <noreply@github.com>2021-01-06 15:16:46 +0100
commit1d6195ff643ed153eb0f233b32f1becc68c79ee6 (patch)
tree9d2651dbabbfb6aa583cf2f89606ee12b8d85ef9
parentdda5b44b94f715395798f92f9e17e84bd0666f4a (diff)
fix: remove quotes from spell suggestions (#400)
-rw-r--r--lua/telescope/builtin/internal.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua
index 4a3ed18..bc23b69 100644
--- a/lua/telescope/builtin/internal.lua
+++ b/lua/telescope/builtin/internal.lua
@@ -787,7 +787,8 @@ internal.spell_suggest = function(opts)
actions.goto_file_selection_edit:replace(function()
local selection = actions.get_selected_entry()
actions.close(prompt_bufnr)
- vim.cmd('normal! "_ciw"' .. selection[1])
+ vim.cmd('normal! ciw' .. selection[1])
+ vim.cmd('stopinsert')
end)
return true
end