aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
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)
12848 this_scroll_margin *= FRAME_LINE_HEIGHT (it.f); 12848 this_scroll_margin *= FRAME_LINE_HEIGHT (it.f);
12849 12849
12850 if ((w->cursor.y < this_scroll_margin 12850 if ((w->cursor.y < this_scroll_margin
12851 && CHARPOS (pos) > BEGV) 12851 && CHARPOS (pos) > BEGV
12852 && IT_CHARPOS (it) < ZV)
12852 /* rms: considering make_cursor_line_fully_visible_p here 12853 /* rms: considering make_cursor_line_fully_visible_p here
12853 seems to give wrong results. We don't want to recenter 12854 seems to give wrong results. We don't want to recenter
12854 when the last line is partly visible, we want to allow 12855 when the last line is partly visible, we want to allow