From: Craig Small Date: Sat, 21 Sep 2019 06:03:28 +0000 (+1000) Subject: watch: fix unsetting of COLOR flag X-Git-Tag: v4.0.0~422 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52f112d255da4c4267752e390664eceafc288a41;p=procps-ng watch: fix unsetting of COLOR flag watch used to check if COLOR was required, check if color was possible then.. set the flag again. It should have been cleared after failing to get colors out of ncurses. References: procps-ng/procps#143 --- diff --git a/watch.c b/watch.c index a0b05675..a945fd81 100644 --- a/watch.c +++ b/watch.c @@ -809,7 +809,7 @@ int main(int argc, char *argv[]) use_default_colors(); init_ansi_colors(); } else { - flags |= WATCH_COLOR; + flags &= ~WATCH_COLOR; } } nonl();