diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-03 22:11:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-03 22:11:08 +0200 |
commit | 4f3c57f7980592b25f483e5953799c010a8ae196 (patch) | |
tree | ff81c84567282ba71ffc4ac0eb566915e154efdd /src/normal.c | |
parent | 5072b47a223fb044041b8e7db59a17b3b1d8a625 (diff) | |
download | vim-git-4f3c57f7980592b25f483e5953799c010a8ae196.tar.gz |
patch 8.2.2932: select mode test failsv8.2.2932
Problem: Select mode test fails.
Solution: Do not always reset the held mouse button.
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; |