aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2005-10-01 20:42:09 +0000
committerKim F. Storm2005-10-01 20:42:09 +0000
commit58e5658e851a261000011deece90d541efc42002 (patch)
treee6d0566b59e9b20206d257e2fea7111c00f1842d
parent21a9a7be96ee3358d7b2094c20d35d897151506d (diff)
downloademacs-58e5658e851a261000011deece90d541efc42002.tar.gz
emacs-58e5658e851a261000011deece90d541efc42002.zip
(try_window): Skip scroll-margin check if ZV is visible.
-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