diff options
| author | Eli Zaretskii | 2012-03-02 17:40:44 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-03-02 17:40:44 +0200 |
| commit | 3e441275a89ba751d227b514981ccb413034b3bb (patch) | |
| tree | 7af001f00ad842321bff54fbec5c8923952b1f3d | |
| parent | 817e5c3dfc0c2b47ff60ff9f099e881a8e9efc25 (diff) | |
| download | emacs-3e441275a89ba751d227b514981ccb413034b3bb.tar.gz emacs-3e441275a89ba751d227b514981ccb413034b3bb.zip | |
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.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 936ec6a3a1f..f0e4fa62175 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | position past the first glyph_row that ends at ZV. (Bug#10902) | 4 | position past the first glyph_row that ends at ZV. (Bug#10902) |
| 5 | (redisplay_window, next_element_from_string): Fix typos in | 5 | (redisplay_window, next_element_from_string): Fix typos in |
| 6 | comments. | 6 | comments. |
| 7 | (redisplay_window): Pass to move_it_vertically the margin in | ||
| 8 | pixels, not in screen lines. | ||
| 7 | 9 | ||
| 8 | 2012-03-02 Glenn Morris <rgm@gnu.org> | 10 | 2012-03-02 Glenn Morris <rgm@gnu.org> |
| 9 | 11 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 810a75fec5d..62d0d187a19 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15611,7 +15611,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15611 | 15611 | ||
| 15612 | SAVE_IT (it1, it, it1data); | 15612 | SAVE_IT (it1, it, it1data); |
| 15613 | start_display (&it1, w, startp); | 15613 | start_display (&it1, w, startp); |
| 15614 | move_it_vertically (&it1, margin); | 15614 | move_it_vertically (&it1, margin * FRAME_LINE_HEIGHT (f)); |
| 15615 | margin_pos = IT_CHARPOS (it1); | 15615 | margin_pos = IT_CHARPOS (it1); |
| 15616 | RESTORE_IT (&it, &it, it1data); | 15616 | RESTORE_IT (&it, &it, it1data); |
| 15617 | } | 15617 | } |