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'.
/* 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;
}
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);