From bdce977a4e4f1b8e9f4ad5489d1da3c79b843055 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 21 Sep 2019 16:03:28 +1000 Subject: [PATCH] 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 --- watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.c b/watch.c index c438178f..a73eab59 100644 --- a/watch.c +++ b/watch.c @@ -806,7 +806,7 @@ int main(int argc, char *argv[]) use_default_colors(); init_ansi_colors(); } else { - flags |= WATCH_COLOR; + flags &= ~WATCH_COLOR; } } nonl();