Mercurial > emacs
changeset 32592:b15e9539194b
(try_cursor_movement): Use cursor_row_p also when
PT has moved backward.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 17 Oct 2000 19:32:19 +0000 |
parents | 4cbe2979f52b |
children | 326836fbd4aa |
files | src/xdisp.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Tue Oct 17 16:08:57 2000 +0000 +++ b/src/xdisp.c Tue Oct 17 19:32:19 2000 +0000 @@ -8958,12 +8958,12 @@ if (rc == 0) { int scroll_p = 0; + int last_y = window_text_bottom_y (w) - this_scroll_margin; + if (PT > XFASTINT (w->last_point)) { /* Point has moved forward. */ - int last_y = window_text_bottom_y (w) - this_scroll_margin; - while (MATRIX_ROW_END_CHARPOS (row) < PT && MATRIX_ROW_BOTTOM_Y (row) < last_y) { @@ -9024,9 +9024,9 @@ /* Due to newlines in overlay strings, we may have to skip forward over overlay strings. */ - while (MATRIX_ROW_END_CHARPOS (row) == PT - && MATRIX_ROW_ENDS_IN_OVERLAY_STRING_P (row) - && !row->ends_at_zv_p) + while (MATRIX_ROW_BOTTOM_Y (row) < last_y + && MATRIX_ROW_END_CHARPOS (row) == PT + && !cursor_row_p (w, row)) ++row; /* If within the scroll margin, scroll. */