Fix computation of scroll-margin's character position in redisplay_window.

src/xdisp.c (redisplay_window): Pass to move_it_vertically the margin in
 pixels, not in screen lines.
This commit is contained in:
Eli Zaretskii 2012-03-02 17:40:44 +02:00
parent 817e5c3dfc
commit 3e441275a8
2 changed files with 3 additions and 1 deletions

View file

@ -4,6 +4,8 @@
position past the first glyph_row that ends at ZV. (Bug#10902)
(redisplay_window, next_element_from_string): Fix typos in
comments.
(redisplay_window): Pass to move_it_vertically the margin in
pixels, not in screen lines.
2012-03-02 Glenn Morris <rgm@gnu.org>

View file

@ -15611,7 +15611,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
SAVE_IT (it1, it, it1data);
start_display (&it1, w, startp);
move_it_vertically (&it1, margin);
move_it_vertically (&it1, margin * FRAME_LINE_HEIGHT (f));
margin_pos = IT_CHARPOS (it1);
RESTORE_IT (&it, &it, it1data);
}