diff --git a/src/keyboard.c b/src/keyboard.c index bb411e7..215fcb9 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -10791,9 +10791,10 @@ The `posn-' functions access elements of such lists. */) Lisp_Object x = XCAR (tem); Lisp_Object y = XCAR (XCDR (tem)); - /* Point invisible due to hscrolling? X can be -1 when a - newline in a R2L line overflows into the left fringe. */ - if (XINT (x) < -1) + /* Point invisible due to hscrolling or vscrolling? X can be -1 + when a newline in a R2L line overflows into the left + fringe. */ + if (XINT (x) < -1 || XINT (y) < 0) return Qnil; tem = Fposn_at_x_y (x, y, window, Qnil); }