mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
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:
parent
cd422e5d78
commit
dff384e42d
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ static std::string ansi_colorize(const wcstring &text,
|
|||
}
|
||||
writech(text.at(i));
|
||||
}
|
||||
|
||||
set_color(rgb_color_t::normal(), rgb_color_t::normal());
|
||||
output_set_writer(saved);
|
||||
std::string result;
|
||||
result.swap(output_receiver);
|
||||
|
|
Loading…
Reference in a new issue