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:
parent
37a2fbce65
commit
bea399640b
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue