watch: Remove second [m check
With the previous watch fixes, there is no need for the second [m check as these are covered in previous checks.
This commit is contained in:
parent
0236d278f2
commit
2f5e0da5bb
2
watch.c
2
watch.c
@ -236,8 +236,6 @@ static void process_ansi(FILE * fp)
|
||||
for (endptr = numstart = buf; *endptr != '\0'; numstart = endptr + 1) {
|
||||
if (!set_ansi_attribute(strtol(numstart, &endptr, 10)))
|
||||
break;
|
||||
if (numstart == endptr)
|
||||
set_ansi_attribute(0); /* [m treated as [0m */
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user