mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
(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.
This commit is contained in:
parent
0dbf9fd270
commit
82e274d1d4
@ -1,5 +1,9 @@
|
||||
2000-10-30 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* xdisp.c (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.
|
||||
|
||||
* xdisp.c (safe_eval_handler): Call add_to_log.
|
||||
|
||||
* xfaces.c (resolve_face_name): Handle case that FACE_NAME
|
||||
|
@ -8768,7 +8768,12 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
|
||||
: 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)
|
||||
|
Loading…
Reference in New Issue
Block a user