# HG changeset patch # User Christian Brabandt # Date 1512322204 -3600 # Node ID d52a3969ce4f7b6600c9cc7c0aefc22ecdd34577 # Parent 55e499af0d7518019957a462c40969c65b9c7a70 patch 8.0.1367 commit https://github.com/vim/vim/commit/1ad022a9b81d7829d5dc98cf5b8d0ee410558040 Author: Bram Moolenaar Date: Sun Dec 3 18:20:32 2017 +0100 patch 8.0.1367 diff --git a/src/beval.c b/src/beval.c --- 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. */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1366, +/**/ 1365, /**/ 1364,