summaryrefslogtreecommitdiffstats
path: root/src/draw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.rs')
-rw-r--r--src/draw.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/draw.rs b/src/draw.rs
index bf3cf5f1..29670693 100644
--- a/src/draw.rs
+++ b/src/draw.rs
@@ -57,7 +57,8 @@ pub fn write_underlined(
heavy: bool,
) -> std::io::Result<()> {
writeln!(writer, "{}", line_style.paint(text))?;
- write_horizontal_line(writer, line_width, line_style, heavy)?;
+ write_horizontal_line(writer, line_width - 1, line_style, heavy)?;
+ write!(writer, "\n")?;
Ok(())
}