From: Eli Zaretskii Date: Sun, 28 Sep 2003 20:50:55 +0000 (+0000) Subject: (tty_setup_colors): Treat any negative argument as -1. X-Git-Tag: ttn-vms-21-2-B4~8714 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=40409f0585d49dbcad912d49c7dc467c51b4de9f;p=emacs.git (tty_setup_colors): Treat any negative argument as -1. --- diff --git a/src/ChangeLog b/src/ChangeLog index dc7d615403a..ab41449534b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-09-28 Eli Zaretskii + + * term.c (tty_setup_colors): Treat any negative argument as -1. + 2003-09-26 Dave Love * xterm.c (x_bitmap_mask): Declare. diff --git a/src/term.c b/src/term.c index dba6b0e4a52..8e4eb21c362 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 */