Mercurial > emacs
changeset 65778:ea1220124878
(try_window): Skip scroll-margin check if ZV is visible.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 01 Oct 2005 20:42:09 +0000 |
parents | 771eb88abb7f |
children | 103ed0b7e567 |
files | src/xdisp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Oct 01 20:41:57 2005 +0000 +++ b/src/xdisp.c Sat Oct 01 20:42:09 2005 +0000 @@ -12848,7 +12848,8 @@ 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