0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.2932: select mode test fails

Problem:    Select mode test fails.
Solution:   Do not always reset the held mouse button.
This commit is contained in:
Bram Moolenaar
2021-06-03 22:11:08 +02:00
parent 5072b47a22
commit 4f3c57f798
4 changed files with 18 additions and 9 deletions

View File

@@ -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;