changeset 52652:31a3a92c1a03

(tty_setup_colors): Treat any negative argument as -1.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 28 Sep 2003 20:49:19 +0000
parents aaa07f5baaa8
children d4af4cfdc701
files src/term.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Sun Sep 28 16:11:45 2003 +0000
+++ b/src/term.c	Sun Sep 28 20:49:19 2003 +0000
@@ -2066,6 +2066,10 @@
 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 */