From 58e5658e851a261000011deece90d541efc42002 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sat, 1 Oct 2005 20:42:09 +0000 Subject: [PATCH] (try_window): Skip scroll-margin check if ZV is visible. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index d9d2462d31a..2dd48757470 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12848,7 +12848,8 @@ try_window (window, pos, check_margins) this_scroll_margin *= FRAME_LINE_HEIGHT (it.f); if ((w->cursor.y < this_scroll_margin - && CHARPOS (pos) > BEGV) + && CHARPOS (pos) > BEGV + && IT_CHARPOS (it) < ZV) /* rms: considering make_cursor_line_fully_visible_p here seems to give wrong results. We don't want to recenter when the last line is partly visible, we want to allow -- 2.39.5