diff src/beval.c @ 12981:d52a3969ce4f v8.0.1367

patch 8.0.1367 commit https://github.com/vim/vim/commit/1ad022a9b81d7829d5dc98cf5b8d0ee410558040 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 3 18:20:32 2017 +0100 patch 8.0.1367
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Dec 2017 18:30:04 +0100
parents 058e93aee621
children 8412df1479a3
line wrap: on
line diff
--- 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. */