summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-01-23 09:39:17 -0500
committerAllan McRae <allan@archlinux.org>2014-01-28 20:52:46 +1000
commit333373f90e515bbaf6997dc7bf7385fe114689b2 (patch)
treece720f29f8dcc68dee8966451feb7ace5fe0f133 /src
parent5be7b6a1b2e197a6d185fc6223ff1e7acc4c3e27 (diff)
downloadpacman-333373f90e515bbaf6997dc7bf7385fe114689b2.tar.xz
enable_colors: always set color strings
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@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/conf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 4b7ec051..729c9cb6 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 = "";
}
}