Fix fish_indent leaving colors set/messing up type

After the colorized syntax output in type -a foo, "foo is /usr/..."
would also be colored. (or 'test' in fish_indent foo.fish; echo test).

Make fish_indent reset the color when it's done.
This commit is contained in:
Aaron Gyes 2016-07-01 06:22:23 -07:00
parent bc693bd4e0
commit c9caee37b4

View File

@ -228,7 +228,7 @@ static std::string ansi_colorize(const wcstring &text, const std::vector<highlig
} }
writech(text.at(i)); writech(text.at(i));
} }
set_color(rgb_color_t::normal(), rgb_color_t::normal());
output_set_writer(saved); output_set_writer(saved);
std::string result; std::string result;
result.swap(output_receiver); result.swap(output_receiver);