From a0bbec21143c7bc5f8bb02e0005fa0b982edc026 Mon Sep 17 00:00:00 2001 From: Tristan Knight Date: Thu, 23 May 2024 03:41:23 +0100 Subject: [PATCH] fix(builtin.spell_suggest): ciw into black hole register (#3124) (cherry picked from commit 5665d93988acfbb0747bdbf4f4cb583bcebc8930) --- lua/telescope/builtin/__internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index 1487617569..a8338fdcdb 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -1326,7 +1326,7 @@ internal.spell_suggest = function(opts) action_state.get_current_picker(prompt_bufnr)._original_mode = "i" actions.close(prompt_bufnr) - vim.cmd("normal! ciw" .. selection[1]) + vim.cmd('normal! "_ciw' .. selection[1]) vim.cmd "stopinsert" end) return true