[pacman-dev] [PATCH] enable_colors: always set color strings
Andrew Gregory
andrew.gregory.8 at gmail.com
Thu Jan 23 09:39:17 EST 2014
Only setting color strings when colors is true allowed subsequent
calls to enable colors but not disable them.
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
src/pacman/conf.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 5450f3b..4d71ada 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -76,6 +76,16 @@ void enable_colors(int colors)
colstr->warn = BOLDYELLOW;
colstr->err = BOLDRED;
colstr->nocolor = NOCOLOR;
+ } else {
+ colstr->colon = ":: ";
+ colstr->title = "";
+ colstr->repo = "";
+ colstr->version = "";
+ colstr->groups = "";
+ colstr->meta = "";
+ colstr->warn = "";
+ colstr->err = "";
+ colstr->nocolor = "";
}
}
--
1.8.5.3
More information about the pacman-dev
mailing list