aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/color.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2015-12-07 18:41:17 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-12-08 20:08:08 -0800
commit7322c9c5916f2332286e935dbb506d5025b70636 (patch)
tree7cd530124c9abc4acab1d1e3ec713690797f2f51 /src/color.cpp
parentdfaefb97ffa2a1fabff5b790a869086cd6bae248 (diff)
"normal" should appear in set_color --print-colors
Diffstat (limited to 'src/color.cpp')
-rw-r--r--src/color.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/color.cpp b/src/color.cpp
index a194550b..098aa5cd 100644
--- a/src/color.cpp
+++ b/src/color.cpp
@@ -193,6 +193,12 @@ wcstring_list_t rgb_color_t::named_color_names(void)
{
result.push_back(named_colors[i].name);
}
+ // "normal" isn't really a color and does not have a color palette index or
+ // RGB value. Therefore, it does not appear in the named_colors table.
+ // However, it is a legitimate color name for the "set_color" command so
+ // include it in the publicly known list of colors. This is primarily so it
+ // appears in the output of "set_color --print-colors".
+ result.push_back(L"normal");
return result;
}