diff src/window.c @ 30980:eb51299c4bfc v9.0.0825

patch 9.0.0825: cannot drag an entry in the tabpage line Commit: https://github.com/vim/vim/commit/8e0ccb6bc21a446e5c6375b7fdf200fb53a129da Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Nov 1 18:35:27 2022 +0000 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 https://github.com/vim/vim/issues/11483, closes #11482)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Nov 2022 11:18:55 +0100
parents bcda60183c77
children f6d4c6a3b41c
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -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