summaryrefslogtreecommitdiffstats
path: root/src/draw.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-19 11:43:57 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-19 11:44:41 -0400
commit1c4c4d75386a10b4b8c0c6f2476feab5926b56a6 (patch)
tree78fb8a1e38f4de1ba16a7a6278060b05723ec6fb /src/draw.rs
parentf0e6c833b37bbd015074da1a3707de2991b3052c (diff)
Refactor: add native style.paint() method
Diffstat (limited to 'src/draw.rs')
-rw-r--r--src/draw.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/draw.rs b/src/draw.rs
index aee7743c..9d6fce6e 100644
--- a/src/draw.rs
+++ b/src/draw.rs
@@ -20,7 +20,7 @@ pub fn write_no_decoration(
if text_style.is_raw {
writeln!(writer, "{}", raw_text)?;
} else {
- writeln!(writer, "{}", text_style.ansi_term_style.paint(text))?;
+ writeln!(writer, "{}", text_style.paint(text))?;
}
Ok(())
}
@@ -180,7 +180,7 @@ fn _write_under_or_over_lined(
if text_style.is_raw {
writeln!(writer, "{}", raw_text)?;
} else {
- writeln!(writer, "{}", text_style.ansi_term_style.paint(text))?;
+ writeln!(writer, "{}", text_style.paint(text))?;
}
match underoverline {
UnderOverline::Over => {}
@@ -263,7 +263,7 @@ fn write_boxed_partial(
if text_style.is_raw {
write!(writer, "{}", raw_text)?;
} else {
- write!(writer, "{}", text_style.ansi_term_style.paint(text))?;
+ write!(writer, "{}", text_style.paint(text))?;
}
write!(
writer,