Skip to content

Commit

Permalink
Support :[range]cmd in visual mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-descartes2021 committed Dec 7, 2022
1 parent 72973ce commit c0eb7a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/which_key.vim
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ function! s:execute(cmd) abort
elseif Cmd =~? '.(*)$' && match(Cmd, '\<call\>') == -1
let Cmd = s:join('call', Cmd)
elseif exists(':'.Cmd) || Cmd =~# '^:' || Cmd =~? '^call feedkeys(.*)$'
let Cmd = Cmd
if !empty(s:vis)
let Cmd = line('v').','.line('.').Cmd
endif
else
let Cmd = s:join('call', 'feedkeys("'.Cmd.'")')
endif
Expand Down

0 comments on commit c0eb7a6

Please sign in to comment.