Fix assertion violation when 'max-redisplay-ticks' is set too low
* src/xdisp.c (update_redisplay_ticks): Disable 'scrolling_window' optimization in 'update_window' when redisplay of a window is aborted. (Bug#56184)
This commit is contained in:
parent
66669c5c20
commit
391acd9134
1 changed files with 5 additions and 0 deletions
|
@ -17250,6 +17250,11 @@ update_redisplay_ticks (int ticks, struct window *w)
|
|||
: (char *) "<unknown>");
|
||||
|
||||
windows_or_buffers_changed = 177;
|
||||
/* scrolling_window depends too much on the glyph matrices being
|
||||
correct, and we cannot guarantee that if we abort the
|
||||
redisplay of this window. */
|
||||
if (w && w->desired_matrix)
|
||||
w->desired_matrix->no_scrolling_p = true;
|
||||
error ("Window showing buffer %s takes too long to redisplay", bufname);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue