From 1d6195ff643ed153eb0f233b32f1becc68c79ee6 Mon Sep 17 00:00:00 2001 From: Senghan Bright Date: Wed, 6 Jan 2021 15:16:46 +0100 Subject: [PATCH] fix: remove quotes from spell suggestions (#400) --- lua/telescope/builtin/internal.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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