@@ -10,7 +10,6 @@ const PANEL_WIDTH: usize = 7;
1010pub struct Printer<'a> {
1111 handle: &'a mut Write,
1212 colors: Colors,
13− term_width: usize,
1413 options: &'a Options<'a>,
1514 pub line_changes: Option<LineChanges>,
1615}
@@ -26,7 +25,6 @@ impl<'a> Printer<'a> {
2625 Printer {
2726 handle,
2827 colors,
29− term_width: options.term_width,
3028 options,
3129 line_changes: None,
3230 }
@@ -137,7 +135,7 @@ impl<'a> Printer<'a> {
137135 }
138136
139137 fn print_horizontal_line(&mut self, grid_char: char) -> Result<()> {
140− let hline = "─".repeat(self.term_width - (PANEL_WIDTH + 1));
138+ let hline = "─".repeat(self.options.term_width - (PANEL_WIDTH + 1));
141139 let hline = format!("{}{}{}", "─".repeat(PANEL_WIDTH), grid_char, hline);
142140
143141 writeln!(self.handle, "{}", self.colors.grid.paint(hline))?;