aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2019-10-07 21:22:03 +0300
committerEli Zaretskii2019-10-07 21:22:03 +0300
commit18251fb73941bc2aac5aac8d5e63bfdcfa9d3c8a (patch)
tree4163c41ef2dbc3b3892fb3a55503b369879bb658 /src
parent67830e756911f0c262bb3a447e58b9ff6739a60f (diff)
downloademacs-18251fb73941bc2aac5aac8d5e63bfdcfa9d3c8a.tar.gz
emacs-18251fb73941bc2aac5aac8d5e63bfdcfa9d3c8a.zip
Fix a crash in TTY sessions caused by recent changes
* src/xdisp.c (redisplay_internal): Fix crashes in TTY sessions when turning on tab-mode. Reported by Ergus <spacibba@aol.com>.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 192bf010136..29d49d57dfd 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -15680,9 +15680,11 @@ redisplay_internal (void)
15680 /* On some platforms (at least MS-Windows), the 15680 /* On some platforms (at least MS-Windows), the
15681 scroll_run_hook called from scrolling_window 15681 scroll_run_hook called from scrolling_window
15682 called from update_frame could set the frame's 15682 called from update_frame could set the frame's
15683 garbaged flag, in which case we need to 15683 garbaged flag, in which case we need to redisplay
15684 redisplay the frame. */ 15684 the frame. Don't do that on TTY frames, since we
15685 if (FRAME_GARBAGED_P (f)) 15685 need to keep the garbaged flag in that case when
15686 the frame has been resized. */
15687 if (FRAME_WINDOW_P (f) && FRAME_GARBAGED_P (f))
15686 { 15688 {
15687 fset_redisplay (f); 15689 fset_redisplay (f);
15688 f->garbaged = false; 15690 f->garbaged = false;