aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2015-04-09 04:08:33 +0200
committerMarco Hinz <mh.codebro@gmail.com>2015-04-28 14:16:37 +0200
commitc1d1992b1c968facd81f304c2411445257cf01ce (patch)
treec879cf4ce5e6539c0b5d6ef090f456010b518965
parent2d4a6843fc60e3223665fb2b71df0145bebd4352 (diff)
downloadrneovim-c1d1992b1c968facd81f304c2411445257cf01ce.tar.gz
rneovim-c1d1992b1c968facd81f304c2411445257cf01ce.tar.bz2
rneovim-c1d1992b1c968facd81f304c2411445257cf01ce.zip
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.
-rw-r--r--src/nvim/normal.c1
1 files changed, 1 insertions, 0 deletions
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;
}