]> granicus.if.org Git - procps-ng/commit
watch: fix unsetting of COLOR flag
authorCraig Small <csmall@dropbear.xyz>
Sat, 21 Sep 2019 06:03:28 +0000 (16:03 +1000)
committerCraig Small <csmall@dropbear.xyz>
Sat, 21 Sep 2019 06:03:28 +0000 (16:03 +1000)
commitbdce977a4e4f1b8e9f4ad5489d1da3c79b843055
treef9bba879ab4c0f2ceaa3be8e431e55b48563d270
parent7af88da373bb4d515a98ec2f0f5d56c63904f932
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