Skip to content

Commit

Permalink
use feedkeys to handle built in mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
acdifran committed Nov 11, 2021
1 parent 2c915b6 commit de022f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/which_key.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de022f6

Please sign in to comment.