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:
Craig Small 2016-07-09 15:16:57 +10:00
parent 0236d278f2
commit 2f5e0da5bb

View File

@ -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 */
}
}