diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-31 10:01:20 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-31 10:01:20 -0400 |
commit | e2ac911a41424a3130f305cf199908b1ee5a9fcc (patch) | |
tree | ed985628dc8538b831ab5d16cec94567e225ceb2 /src/draw.rs | |
parent | 64069e6798246f6bb7bd041684a853f7b8137728 (diff) |
Fix painting of file line under --decoration-style=omit
Diffstat (limited to 'src/draw.rs')
-rw-r--r-- | src/draw.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw.rs b/src/draw.rs index 0dae0880..b9ddca37 100644 --- a/src/draw.rs +++ b/src/draw.rs @@ -10,10 +10,10 @@ pub fn write_no_decoration( writer: &mut dyn Write, text: &str, _line_width: usize, // ignored - _text_style: ansi_term::Style, + text_style: ansi_term::Style, _decoration_style: ansi_term::Style, ) -> std::io::Result<()> { - writeln!(writer, "{}", text)?; + writeln!(writer, "{}", text_style.paint(text))?; Ok(()) } |