diff options
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/normal.c b/src/normal.c index f8ec8e9ce..c4c167935 100644 --- a/src/normal.c +++ b/src/normal.c @@ -1350,11 +1350,18 @@ call_yank_do_autocmd(int regname) /* * End Visual mode. - * This function should ALWAYS be called to end Visual mode, except from - * do_pending_operator(). + * This function or the next should ALWAYS be called to end Visual mode, except + * from do_pending_operator(). */ void -end_visual_mode(void) +end_visual_mode() +{ + end_visual_mode_keep_button(); + reset_held_button(); +} + + void +end_visual_mode_keep_button() { #ifdef FEAT_CLIPBOARD /* @@ -1380,7 +1387,6 @@ end_visual_mode(void) #endif VIsual_active = FALSE; - reset_held_button(); setmouse(); mouse_dragging = 0; |