Fix for assertion failure in fish_indent when setting a non-RGB color

This commit is contained in:
ridiculousfish 2014-12-24 12:43:00 -08:00
parent 04651105a8
commit 77a7dd82a9

View file

@ -179,7 +179,7 @@ static std::string ansi_colorize(const wcstring &text, const std::vector<highlig
highlight_spec_t color = colors.at(i); highlight_spec_t color = colors.at(i);
if (color != last_color) 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; last_color = color;
} }
writech(text.at(i)); writech(text.at(i));