Mercurial > emacs
changeset 47428:eb0020984860
(try_scrolling): If after make_cursor_line_fully_visible
we go to too_near_end, call clear_glyph_matrix.
(redisplay_window): After make_cursor_line_fully_visible,
call clear_glyph_matrix and bypass `goto done'.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 12 Sep 2002 03:26:01 +0000 |
parents | 8cdcbab66042 |
children | 49c23a6bf79f |
files | src/xdisp.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Thu Sep 12 03:22:40 2002 +0000 +++ b/src/xdisp.c Thu Sep 12 03:26:01 2002 +0000 @@ -9789,7 +9789,10 @@ /* If cursor ends up on a partially visible line, treat that as being off the bottom of the screen. */ if (! make_cursor_line_fully_visible (w)) - goto too_near_end; + { + clear_glyph_matrix (w->desired_matrix); + goto too_near_end; + } rc = SCROLLING_SUCCESS; } @@ -10496,9 +10499,10 @@ w->base_line_number = Qnil; if (!make_cursor_line_fully_visible (w)) + clear_glyph_matrix (w->desired_matrix); /* Drop through and scroll. */ - ; - goto done; + else + goto done; } else clear_glyph_matrix (w->desired_matrix);