From de022f6054881ec94138a3bc7a22f1999e870039 Mon Sep 17 00:00:00 2001 From: Anthony DiFrancesco Date: Thu, 11 Nov 2021 13:56:59 -0800 Subject: [PATCH] use feedkeys to handle built in mappings --- autoload/which_key.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/which_key.vim b/autoload/which_key.vim index cb4fc1c..5ef548f 100644 --- a/autoload/which_key.vim +++ b/autoload/which_key.vim @@ -304,7 +304,7 @@ function! s:execute_native_fallback(append) abort let l:fallback_cmd = l:fallback_cmd.get(s:, 'cur_char', '') endif try - execute 'normal! '.l:fallback_cmd + call feedkeys(l:fallback_cmd, 'n') catch call which_key#error#report('Exception: '.v:exception.' occurs for the fallback mapping: '.l:fallback_cmd) endtry