summaryrefslogtreecommitdiff
path: root/src/beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-12-03 18:20:32 +0100
committerBram Moolenaar <Bram@vim.org>2017-12-03 18:20:32 +0100
commit1ad022a9b81d7829d5dc98cf5b8d0ee410558040 (patch)
tree91ce0dc3f8519c0718a06288d35398d69e4eab21 /src/beval.c
parent24820691e6ba9dae41ef16a3d3e55589843b34f4 (diff)
downloadvim-git-1ad022a9b81d7829d5dc98cf5b8d0ee410558040.tar.gz
patch 8.0.1367v8.0.1366
Diffstat (limited to 'src/beval.c')
-rw-r--r--src/beval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/beval.c b/src/beval.c
index f8bb6ba26..981e5ea46 100644
--- a/src/beval.c
+++ b/src/beval.c
@@ -50,7 +50,7 @@ get_beval_info(
}
#endif
wp = mouse_find_win(&row, &col);
- if (wp != NULL && row < wp->w_height && col < wp->w_width)
+ if (wp != NULL && row >= 0 && row < wp->w_height && col < wp->w_width)
{
/* Found a window and the cursor is in the text. Now find the line
* number. */