diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-07 08:23:23 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-07 08:23:23 +0800 |
commit | 82d005b9e3ed9ce8d4441c607ec160f2f0a48b1c (patch) | |
tree | 8e8266faa454065f15c11871a745af96f64b9ce9 /src/aggregate.rs | |
parent | 2c73b4d59603c12d31ded1a2f2ca9ef97a5ff0b3 (diff) |
Fix color handling (causing the text to disappear); fix tty detection
Crossterm works differently from termion, I might say: more correct!
Diffstat (limited to 'src/aggregate.rs')
-rw-r--r-- | src/aggregate.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/aggregate.rs b/src/aggregate.rs index a754c98..8d16047 100644 --- a/src/aggregate.rs +++ b/src/aggregate.rs @@ -135,13 +135,11 @@ fn output_colored_path( .to_string() .as_str() .green(), - options.color.display( - path.as_ref() - .display() - .to_string() - .as_str() - .color(path_color.unwrap_or(Color::White)) - ), + path.as_ref() + .display() + .to_string() + .as_str() + .color(path_color.unwrap_or(Color::White)), if num_errors == 0 { Cow::Borrowed("") } else { |