]> granicus.if.org Git - procps-ng/commitdiff
watch: fix process_ansi typo
authorCraig Small <csmall@enc.com.au>
Sat, 9 Jul 2016 05:57:11 +0000 (15:57 +1000)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jul 2016 21:45:56 +0000 (07:45 +1000)
When I had to apply Josh's ansi fix a few commits below I put the
return before the setattr

References:
 commit 261c571acafed88d03ebdb5c5fa3d7e084daf25b

watch.c

diff --git a/watch.c b/watch.c
index 277807e1a578347e84b47b40b88789d3376ee5b3..40daa27d35edfc09f5ae326dcd814431f94b592e 100644 (file)
--- a/watch.c
+++ b/watch.c
@@ -193,9 +193,8 @@ static int set_ansi_attribute(const int attrib)
                        return 0; /* Not understood */
                }
        }
-    return 1;
-
        attrset(attributes | COLOR_PAIR(bg_col * nr_of_colors + fg_col + 1));
+    return 1;
 }
 
 static void process_ansi(FILE * fp)