mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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>
This commit is contained in:
parent
5be7b6a1b2
commit
333373f90e
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user