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:
14
src/normal.c
14
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;
|
||||
|
||||
|
Reference in New Issue
Block a user