aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index df7dc9ee464..20f746decdb 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2244,7 +2244,7 @@ set_tty_color_mode (tty, f)
2244 struct tty_display_info *tty; 2244 struct tty_display_info *tty;
2245 struct frame *f; 2245 struct frame *f;
2246{ 2246{
2247 Lisp_Object tem, val, color_mode_spec; 2247 Lisp_Object tem, val;
2248 Lisp_Object color_mode; 2248 Lisp_Object color_mode;
2249 int mode; 2249 int mode;
2250 extern Lisp_Object Qtty_color_mode; 2250 extern Lisp_Object Qtty_color_mode;
@@ -2256,12 +2256,13 @@ set_tty_color_mode (tty, f)
2256 2256
2257 if (INTEGERP (val)) 2257 if (INTEGERP (val))
2258 color_mode = val; 2258 color_mode = val;
2259 else 2259 else if (SYMBOLP (tty_color_mode_alist))
2260 { 2260 {
2261 tem = (NILP (tty_color_mode_alist) ? Qnil 2261 tem = Fassq (val, Fsymbol_value (tty_color_mode_alist));
2262 : Fassq (val, XSYMBOL (tty_color_mode_alist)->value));
2263 color_mode = CONSP (tem) ? XCDR (tem) : Qnil; 2262 color_mode = CONSP (tem) ? XCDR (tem) : Qnil;
2264 } 2263 }
2264 else
2265 color_mode = Qnil;
2265 2266
2266 mode = INTEGERP (color_mode) ? XINT (color_mode) : 0; 2267 mode = INTEGERP (color_mode) ? XINT (color_mode) : 0;
2267 2268