File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,19 @@ function! s:shortcut_menu_item_action(choice) abort
35
35
"
36
36
call feedkeys (" \<esc> " , ' n' )
37
37
38
- " restore visual selection or numbered repetition
39
- if s: is_from_visual
40
- normal ! gv
41
- elseif v: count
42
- call feedkeys (v: count , ' n' )
43
- endif
44
-
45
38
" restore cursor to original position before menu
46
39
call winrestview ({
47
40
\ ' lnum' : s: cursor_position .lnum,
48
41
\ ' col' : s: cursor_position .curswant
49
42
\ })
50
43
44
+ " restore visual selection or numbered repetition
45
+ if v: count
46
+ call feedkeys (v: count , ' n' )
47
+ elseif s: is_from_visual
48
+ call feedkeys (' gv' , ' n' )
49
+ endif
50
+
51
51
" trigger shortcut by typing keys on user's behalf
52
52
let shortcut = matchstr (a: choice , ' ^\S\+' )
53
53
let keystrokes = ShortcutKeystrokes (shortcut)
You can’t perform that action at this time.
0 commit comments