diff options
| author | Eli Zaretskii | 2011-11-25 17:22:30 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-11-25 17:22:30 +0200 |
| commit | 5c730f48c59db8a891cbe46014645f01b4c201e6 (patch) | |
| tree | 29c9ed06673f2ae7b23050217083c1e77aed29e7 /src | |
| parent | 94af99a4bf6af2c9e19b4290756f695f120b508f (diff) | |
| download | emacs-5c730f48c59db8a891cbe46014645f01b4c201e6.tar.gz emacs-5c730f48c59db8a891cbe46014645f01b4c201e6.zip | |
Fix a thinko in 2011-11-25T11:32:14Z!eliz@gnu.org.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 953a102b095..9397d15acb7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15043,7 +15043,6 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15043 | int centering_position = -1; | 15043 | int centering_position = -1; |
| 15044 | int last_line_misfit = 0; | 15044 | int last_line_misfit = 0; |
| 15045 | EMACS_INT beg_unchanged, end_unchanged; | 15045 | EMACS_INT beg_unchanged, end_unchanged; |
| 15046 | int scrolling_up; | ||
| 15047 | 15046 | ||
| 15048 | SET_TEXT_POS (lpoint, PT, PT_BYTE); | 15047 | SET_TEXT_POS (lpoint, PT, PT_BYTE); |
| 15049 | opoint = lpoint; | 15048 | opoint = lpoint; |
| @@ -15559,6 +15558,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15559 | : 0; | 15558 | : 0; |
| 15560 | EMACS_INT margin_pos = CHARPOS (startp); | 15559 | EMACS_INT margin_pos = CHARPOS (startp); |
| 15561 | Lisp_Object aggressive; | 15560 | Lisp_Object aggressive; |
| 15561 | int scrolling_up; | ||
| 15562 | 15562 | ||
| 15563 | /* If there is a scroll margin at the top of the window, find | 15563 | /* If there is a scroll margin at the top of the window, find |
| 15564 | its character position. */ | 15564 | its character position. */ |
| @@ -15730,8 +15730,9 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15730 | scroll_margin > 0 | 15730 | scroll_margin > 0 |
| 15731 | ? min (scroll_margin, WINDOW_TOTAL_LINES (w) / 4) | 15731 | ? min (scroll_margin, WINDOW_TOTAL_LINES (w) / 4) |
| 15732 | : 0; | 15732 | : 0; |
| 15733 | int move_down = w->cursor.vpos >= WINDOW_TOTAL_LINES (w) / 2; | ||
| 15733 | 15734 | ||
| 15734 | move_it_by_lines (&it, scrolling_up ? margin + 1 : margin -1); | 15735 | move_it_by_lines (&it, move_down ? margin + 1 : -(margin + 1)); |
| 15735 | clear_glyph_matrix (w->desired_matrix); | 15736 | clear_glyph_matrix (w->desired_matrix); |
| 15736 | if (1 == try_window (window, it.current.pos, | 15737 | if (1 == try_window (window, it.current.pos, |
| 15737 | TRY_WINDOW_CHECK_MARGINS)) | 15738 | TRY_WINDOW_CHECK_MARGINS)) |