Mercurial > emacs
comparison src/xdisp.c @ 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 | 38bf43c3fb05 |
children | a0360c4a3066 |
comparison
equal
deleted
inserted
replaced
47427:8cdcbab66042 | 47428:eb0020984860 |
---|---|
9787 w->base_line_number = Qnil; | 9787 w->base_line_number = Qnil; |
9788 | 9788 |
9789 /* If cursor ends up on a partially visible line, | 9789 /* If cursor ends up on a partially visible line, |
9790 treat that as being off the bottom of the screen. */ | 9790 treat that as being off the bottom of the screen. */ |
9791 if (! make_cursor_line_fully_visible (w)) | 9791 if (! make_cursor_line_fully_visible (w)) |
9792 goto too_near_end; | 9792 { |
9793 clear_glyph_matrix (w->desired_matrix); | |
9794 goto too_near_end; | |
9795 } | |
9793 rc = SCROLLING_SUCCESS; | 9796 rc = SCROLLING_SUCCESS; |
9794 } | 9797 } |
9795 | 9798 |
9796 return rc; | 9799 return rc; |
9797 } | 9800 } |
10494 || BEG_UNCHANGED < CHARPOS (startp)) | 10497 || BEG_UNCHANGED < CHARPOS (startp)) |
10495 /* Forget any recorded base line for line number display. */ | 10498 /* Forget any recorded base line for line number display. */ |
10496 w->base_line_number = Qnil; | 10499 w->base_line_number = Qnil; |
10497 | 10500 |
10498 if (!make_cursor_line_fully_visible (w)) | 10501 if (!make_cursor_line_fully_visible (w)) |
10502 clear_glyph_matrix (w->desired_matrix); | |
10499 /* Drop through and scroll. */ | 10503 /* Drop through and scroll. */ |
10500 ; | 10504 else |
10501 goto done; | 10505 goto done; |
10502 } | 10506 } |
10503 else | 10507 else |
10504 clear_glyph_matrix (w->desired_matrix); | 10508 clear_glyph_matrix (w->desired_matrix); |
10505 } | 10509 } |
10506 | 10510 |