projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4855bb6
)
Don't print error if no color string is parsed.
author
Michael Andres
<ma@suse.de>
Wed, 19 Dec 2012 08:46:25 +0000
(09:46 +0100)
committer
Michael Andres
<ma@suse.de>
Wed, 19 Dec 2012 08:46:25 +0000
(09:46 +0100)
src/utils/colors.cc
patch
|
blob
|
history
diff --git
a/src/utils/colors.cc
b/src/utils/colors.cc
index
cf53bfc
..
de705d0
100644
(file)
--- a/
src/utils/colors.cc
+++ b/
src/utils/colors.cc
@@
-26,6
+26,7
@@
Color::Color(const string & color_str)
string Color::parse(const string & value)
{
static map<string, string> str2esc = {
+ { "", "" }, // no color
{ "green", COLOR_GREEN },
{ "lightgreen", COLOR_GREEN_LIGHT },
{ "red", COLOR_RED },