ok/jj
1
0
Fork 0
forked from mirrors/jj

commands: don't leave color on after printing error

E.g. `jj log` outside a repo would print the message with red color
and then not turn off the color after the message.
This commit is contained in:
Martin von Zweigbergk 2021-01-23 23:49:14 -08:00
parent 37a2fbce65
commit bea399640b

View file

@ -81,6 +81,7 @@ impl<'a> Ui<'a> {
let mut styler = self.styler();
styler.add_label(String::from("error"));
styler.write_str(text);
styler.remove_label();
}
pub fn write_commit_summary<'r>(&mut self, repo: &'r dyn Repo, commit: &Commit) {