diff options
author | Eli Zaretskii <[email protected]> | 2003-09-28 20:50:55 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2003-09-28 20:50:55 +0000 |
commit | 40409f0585d49dbcad912d49c7dc467c51b4de9f (patch) | |
tree | a3b92efabc24572d47466e02a8c15fcc2b6b7c18 /src/term.c | |
parent | e641d30067ba5066cee797bdae568a5530afe5b5 (diff) |
(tty_setup_colors): Treat any negative argument as -1.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index dba6b0e4a5..8e4eb21c36 100644 --- a/src/term.c +++ b/src/term.c @@ -2066,6 +2066,10 @@ void tty_setup_colors (mode) int mode; { + /* Canonicalize all negative values of MODE. */ + if (mode < -1) + mode = -1; + switch (mode) { case -1: /* no colors at all */ |