diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d6f26cbf8c8..16c351b9f91 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9789,7 +9789,10 @@ try_scrolling (window, just_this_one_p, scroll_conservatively, | |||
| 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 | ||
| @@ -10496,9 +10499,10 @@ redisplay_window (window, just_this_one_p) | |||
| 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); |