From c1d1992b1c968facd81f304c2411445257cf01ce Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 9 Apr 2015 04:08:33 +0200 Subject: Fix visual selection after left click on tabline After left clicking on a tab in the tabline, the "in_tab_line" variable wasn't set to 'false' and every following mouse action assumed still being on the tabline which messed up visual selection etc. --- src/nvim/normal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 9462a2186e..5f4faae03c 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2067,6 +2067,7 @@ do_mouse ( } else if (is_drag && in_tab_line) { c1 = TabPageIdxs[mouse_col]; tabpage_move(c1 <= 0 ? 9999 : c1 - 1); + in_tab_line = false; return false; } -- cgit