Commit 40409f05 authored by Eli Zaretskii's avatar Eli Zaretskii

(tty_setup_colors): Treat any negative argument as -1.

parent e641d300
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.
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment