watch: avoid ansi manipulations in non-ansi mode

This commit is contained in:
Jaromir Capik 2014-09-08 18:28:08 +02:00
parent 578cce6730
commit eae9b671c0

View File

@ -474,7 +474,8 @@ static int run_command(char *restrict command, char **restrict command_argv)
reset_ansi();
for (y = show_title; y < height; y++) {
int eolseen = 0, tabpending = 0, tabwaspending = 0;
set_ansi_attribute(-1);
if (flags & WATCH_COLOR)
set_ansi_attribute(-1);
#ifdef WITH_WATCH8BIT
wint_t carry = WEOF;
#endif