From 2f5e0da5bb9fdaecffec3063ecc542d6623357cf Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 9 Jul 2016 15:16:57 +1000 Subject: [PATCH] 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. --- watch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/watch.c b/watch.c index 8de12b2c..f717e868 100644 --- a/watch.c +++ b/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 */ } }