]> git.eshelyaron.com Git - emacs.git/commitdiff
(tty_setup_colors): Treat any negative argument as -1.
authorEli Zaretskii <eliz@gnu.org>
Sun, 28 Sep 2003 20:50:55 +0000 (20:50 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sun, 28 Sep 2003 20:50:55 +0000 (20:50 +0000)
src/ChangeLog
src/term.c

index dc7d615403ae954455fd3dea2247ff6071ea1d15..ab41449534b292b067f878c73e617dbc200ba976 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-28  Eli Zaretskii  <eliz@elta.co.il>
+
+       * term.c (tty_setup_colors): Treat any negative argument as -1.
+
 2003-09-26  Dave Love  <fx@gnu.org>
 
        * xterm.c (x_bitmap_mask): Declare.
index dba6b0e4a5207b278db47a2412c9cd792280326b..8e4eb21c362dd63729258bd4b175bebd6cafeb48 100644 (file)
@@ -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 */