aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-06-06 17:43:00 +0300
committerEli Zaretskii2024-06-06 17:43:00 +0300
commit91f51f5ac5e6343359ffcadc8341b8da767aab87 (patch)
tree53da303ec0bc25c5a8b4c409bb2d1e04bc63072f /src
parenta48f062e36be3ce5890a8a789272f31f074fea40 (diff)
downloademacs-91f51f5ac5e6343359ffcadc8341b8da767aab87.tar.gz
emacs-91f51f5ac5e6343359ffcadc8341b8da767aab87.zip
Prevent another abort in 'cmcheckmagic'
* src/dispnew.c (update_frame_line): Prevent rare aborts when TTY frame is resized. (Bug#71289)
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index a3c5cbbcf00..8223b90f4a4 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5263,6 +5263,11 @@ update_frame_line (struct frame *f, int vpos, bool updating_menu_p)
5263 bool colored_spaces_p = (FACE_FROM_ID (f, DEFAULT_FACE_ID)->background 5263 bool colored_spaces_p = (FACE_FROM_ID (f, DEFAULT_FACE_ID)->background
5264 != FACE_TTY_DEFAULT_BG_COLOR); 5264 != FACE_TTY_DEFAULT_BG_COLOR);
5265 5265
5266 /* This should never happen, but evidently sometimes does if one
5267 resizes the frame quickly enough. Prevent aborts in cmcheckmagic. */
5268 if (vpos >= FRAME_LINES (f))
5269 return;
5270
5266 if (colored_spaces_p) 5271 if (colored_spaces_p)
5267 write_spaces_p = 1; 5272 write_spaces_p = 1;
5268 5273