summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-05-03 21:26:49 +0000
committerBram Moolenaar <Bram@vim.org>2006-05-03 21:26:49 +0000
commit9c102387aff079b513533e93bb2a8109ccc1492c (patch)
tree5dc78df7736efe7105b9e939af9959d9f9f9fd7e /src/gui.c
parentc05f93ffba24cd678b7f31b40e7b6f64ee12bf74 (diff)
downloadvim-git-9c102387aff079b513533e93bb2a8109ccc1492c.tar.gz
updated for version 7.0g02
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 0c90539b8..3a07cf156 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4544,6 +4544,12 @@ gui_mouse_moved(x, y)
if (wp == curwin || wp == NULL)
return; /* still in the same old window, or none at all */
+#ifdef FEAT_WINDOWS
+ /* Ignore position in the tab pages line. */
+ if (Y_2_ROW(y) < tabline_height())
+ return;
+#endif
+
/*
* format a mouse click on status line input
* ala gui_send_mouse_event(0, x, y, 0, 0);
@@ -4597,7 +4603,11 @@ gui_mouse_correct()
/* Don't move the mouse when it's left or right of the Vim window */
if (x < 0 || x > Columns * gui.char_width)
return;
+# ifdef FEAT_WINDOWS
+ if (Y_2_ROW(y) >= tabline_height())
+# else
if (y >= 0)
+# endif
wp = xy2win(x, y);
if (wp != curwin && wp != NULL) /* If in other than current window */
{