1
0
forked from aniani/vim

patch 8.0.1367

This commit is contained in:
Bram Moolenaar
2017-12-03 18:20:32 +01:00
parent 24820691e6
commit 1ad022a9b8
2 changed files with 3 additions and 1 deletions

View File

@@ -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. */