aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_indent.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-12-24 12:43:00 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-12-24 12:43:17 -0800
commit77a7dd82a9db5daa9471df7640e87fff9be35019 (patch)
treede36ccbe367a00f64f84c278d6f1414c83334834 /fish_indent.cpp
parent04651105a8d8e7eeeba8fa454973f68b9a2a7cbd (diff)
Fix for assertion failure in fish_indent when setting a non-RGB color
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r--fish_indent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp
index 32936106..dfa920b9 100644
--- a/fish_indent.cpp
+++ b/fish_indent.cpp
@@ -179,7 +179,7 @@ static std::string ansi_colorize(const wcstring &text, const std::vector<highlig
highlight_spec_t color = colors.at(i);
if (color != last_color)
{
- write_color(highlight_get_color(color, false), true);
+ set_color(highlight_get_color(color, false), rgb_color_t::normal());
last_color = color;
}
writech(text.at(i));