aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-02 08:04:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-02 08:06:44 +0800
commit419ee612e692fb8985342a2091a0d9bf6dfffe46 (patch)
tree371299acff87e8f92ad113c25ce72a44f3e64223 /src/nvim/window.c
parent39f85cdf6b40cbdd26256260d0d6d4e071b631a2 (diff)
downloadrneovim-419ee612e692fb8985342a2091a0d9bf6dfffe46.tar.gz
rneovim-419ee612e692fb8985342a2091a0d9bf6dfffe46.tar.bz2
rneovim-419ee612e692fb8985342a2091a0d9bf6dfffe46.zip
vim-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 vim/vim#11483, closes vim/vim#11482) https://github.com/vim/vim/commit/8e0ccb6bc21a446e5c6375b7fdf200fb53a129da Omit Test_term_mouse_drag_to_move_tab(): covered by ui/mouse_spec.lua.
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index c1ed2b7920..c755f58c4f 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -4214,7 +4214,7 @@ static int leave_tabpage(buf_T *new_curbuf, bool trigger_leave_autocmds)
}
}
- reset_mouse_got_click();
+ reset_dragwin();
tp->tp_curwin = curwin;
tp->tp_prevwin = prevwin;
tp->tp_firstwin = firstwin;
@@ -4279,7 +4279,7 @@ static void enter_tabpage(tabpage_T *tp, buf_T *old_curbuf, bool trigger_enter_a
// 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 or ROWS_AVAIL changed need to update frame sizes too.