From 9115ad76559ce27fa3aefeba12478ce06338ca5d Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 9 Jul 2016 15:57:11 +1000 Subject: [PATCH] watch: fix process_ansi typo 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watch.c b/watch.c index f717e868..24defcf1 100644 --- 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)