(set_tty_color_mode): Use INTEGERP to test whether a
color mode is an integer number (it could be -1).
This commit is contained in:
parent
8fe7d8c8bd
commit
9ac61a8935
1 changed files with 3 additions and 3 deletions
|
@ -2108,7 +2108,7 @@ set_tty_color_mode (f, val)
|
|||
tty_color_mode_alist = Fintern_soft (build_string ("tty-color-mode-alist"),
|
||||
Qnil);
|
||||
|
||||
if (NATNUMP (val))
|
||||
if (INTEGERP (val))
|
||||
color_mode = val;
|
||||
else
|
||||
{
|
||||
|
@ -2127,11 +2127,11 @@ set_tty_color_mode (f, val)
|
|||
current_mode = XCDR (current_mode_spec);
|
||||
else
|
||||
current_mode = Qnil;
|
||||
if (NATNUMP (color_mode))
|
||||
if (INTEGERP (color_mode))
|
||||
mode = XINT (color_mode);
|
||||
else
|
||||
mode = 0; /* meaning default */
|
||||
if (NATNUMP (current_mode))
|
||||
if (INTEGERP (current_mode))
|
||||
old_mode = XINT (current_mode);
|
||||
else
|
||||
old_mode = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue