Mercurial > emacs
changeset 33074:77c2d2616983
(try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
dy obtained from the iterator's y-position after moving from
scroll_margin_pos to PT; see comment there.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 30 Oct 2000 16:24:14 +0000 |
parents | 41aea8009f39 |
children | bf38bc8b1459 |
files | src/xdisp.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Mon Oct 30 15:43:27 2000 +0000 +++ b/src/xdisp.c Mon Oct 30 16:24:14 2000 +0000 @@ -8768,7 +8768,12 @@ : last_height); dy = it.current_y + line_height - y0; #else - dy = it.current_y - y0; + /* With a scroll_margin of 0, scroll_margin_pos is at the window + end, which is one line below the window. The iterator's + current_y will be same as y0 in that case, but we have to + scroll a line to make PT visible. That's the reason why 1 is + added below. */ + dy = 1 + it.current_y - y0; #endif if (dy > scroll_max)