diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-01-23 15:39:17 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-01-28 11:52:46 +0100 |
commit | 333373f90e515bbaf6997dc7bf7385fe114689b2 (patch) | |
tree | ce720f29f8dcc68dee8966451feb7ace5fe0f133 | |
parent | 5be7b6a1b2e197a6d185fc6223ff1e7acc4c3e27 (diff) | |
download | pacman-333373f90e515bbaf6997dc7bf7385fe114689b2.tar.gz pacman-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>
-rw-r--r-- | src/pacman/conf.c | 10 |
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 = ""; } } |