0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0825: cannot drag an entry in the tabpage line

Problem:    Cannot drag an entry in the tabpage line.
Solution:   Clear dragwin instead of got_click. (closes #11483,
            closes #11482)
This commit is contained in:
zeertzjq
2022-11-01 18:35:27 +00:00
committed by Bram Moolenaar
parent 873f41a018
commit 8e0ccb6bc2
5 changed files with 49 additions and 30 deletions

View File

@@ -4269,7 +4269,7 @@ leave_tabpage(
return FAIL;
}
reset_mouse_got_click();
reset_dragwin();
#if defined(FEAT_GUI)
// Remove the scrollbars. They may be added back later.
if (gui.in_use)
@@ -4338,7 +4338,7 @@ enter_tabpage(
// If there was a click in a window, it won't be usable for a following
// drag.
reset_mouse_got_click();
reset_dragwin();
// 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