summaryrefslogtreecommitdiffstats
path: root/src/beval.c
diff options
context:
space:
mode:
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 f8bb6ba26b..981e5ea46c 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. */