Fix rare crashes in 'try_window_reusing_current_matrix'
* src/xdisp.c (try_window_reusing_current_matrix): Make sure we never use a mode-line glyph row to start displaying scrolled-in rows. (Bug#63711)
This commit is contained in:
parent
709d902002
commit
d292d28229
1 changed files with 3 additions and 1 deletions
|
@ -21081,8 +21081,10 @@ try_window_reusing_current_matrix (struct window *w)
|
|||
pt_row = first_row_to_display;
|
||||
}
|
||||
|
||||
if (first_row_to_display->y >= yb)
|
||||
return false;
|
||||
|
||||
/* Start displaying at the start of first_row_to_display. */
|
||||
eassert (first_row_to_display->y < yb);
|
||||
init_to_row_start (&it, w, first_row_to_display);
|
||||
|
||||
nrows_scrolled = (MATRIX_ROW_VPOS (first_reusable_row, w->current_matrix)
|
||||
|
|
Loading…
Add table
Reference in a new issue