diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-31 23:07:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-31 23:07:11 +0000 |
commit | 7a7db047dcb2336de5103e793345eb5a9d125900 (patch) | |
tree | 2bb6ea64775c1d60dab04e91fbb4a584d8c256ca /src/window.c | |
parent | 8ab9ca93eea32b318235384720200771863ecaee (diff) |
patch 9.0.0823: mouse drag test failsv9.0.0823
Problem: Mouse drag test fails.
Solution: Only reset the mouse click flag when actually switching to another
tab page. Disable test that keeps failing.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 5a9440a4c1..b4e8e94be3 100644 --- a/src/window.c +++ b/src/window.c @@ -4249,7 +4249,6 @@ leave_tabpage( { tabpage_T *tp = curtab; - reset_mouse_got_click(); #ifdef FEAT_JOB_CHANNEL leaving_window(curwin); #endif @@ -4269,6 +4268,8 @@ leave_tabpage( if (curtab != tp) return FAIL; } + + reset_mouse_got_click(); #if defined(FEAT_GUI) // Remove the scrollbars. They may be added back later. if (gui.in_use) @@ -4335,6 +4336,10 @@ enter_tabpage( if (row < cmdline_row && cmdline_row <= Rows - p_ch) clear_cmdline = TRUE; + // If there was a click in a window, it won't be usable for a following + // drag. + reset_mouse_got_click(); + // The tabpage line may have appeared or disappeared, may need to resize // the frames for that. When the Vim window was resized need to update // frame sizes too. @@ -4465,7 +4470,6 @@ goto_tabpage_tp( // Don't repeat a message in another tab page. set_keep_msg(NULL, 0); - reset_mouse_got_click(); skip_win_fix_scroll = TRUE; if (tp != curtab && leave_tabpage(tp->tp_curwin->w_buffer, trigger_leave_autocmds) == OK) |