summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-05-13 10:11:39 +0000
committerBram Moolenaar <Bram@vim.org>2006-05-13 10:11:39 +0000
commit8798be0e9649e582857484cfb2a9235e1e03cd93 (patch)
tree04ec42fbd4b5924087623bb9f4e4b93068effc15 /src/gui.c
parent862c27a03caa544b6a7167ff8dcf96a8f5de3ecd (diff)
downloadvim-git-8798be0e9649e582857484cfb2a9235e1e03cd93.tar.gz
updated for version 7.0-003v7.0.003
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui.c b/src/gui.c
index 3a07cf156..9c1b147f1 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4603,11 +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;
+ if (y >= 0
# ifdef FEAT_WINDOWS
- if (Y_2_ROW(y) >= tabline_height())
-# else
- if (y >= 0)
+ && Y_2_ROW(y) >= tabline_height()
# endif
+ )
wp = xy2win(x, y);
if (wp != curwin && wp != NULL) /* If in other than current window */
{