diff --git a/src/printer.rs b/src/printer.rs index b9a157c367..2d993a88ea 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -207,6 +207,10 @@ impl<'a> Printer for InteractivePrinter<'a> { Yellow.paint("[bat warning]"), input )?; + } else { + if self.config.output_components.grid() { + self.print_horizontal_line(handle, '┬')?; + } } return Ok(()); } diff --git a/tests/snapshots/output/changes_grid.snapshot.txt b/tests/snapshots/output/changes_grid.snapshot.txt index 3350711ac4..04767b8b3a 100644 --- a/tests/snapshots/output/changes_grid.snapshot.txt +++ b/tests/snapshots/output/changes_grid.snapshot.txt @@ -1,3 +1,4 @@ +──┬───────────────────────────────────────────────────────────────────────────── │ struct Rectangle { │ width: u32, │ height: u32, diff --git a/tests/snapshots/output/changes_grid_numbers.snapshot.txt b/tests/snapshots/output/changes_grid_numbers.snapshot.txt index 0d7184251f..7fe7cccfdc 100644 --- a/tests/snapshots/output/changes_grid_numbers.snapshot.txt +++ b/tests/snapshots/output/changes_grid_numbers.snapshot.txt @@ -1,3 +1,4 @@ +───────┬──────────────────────────────────────────────────────────────────────── 1 │ struct Rectangle { 2 │ width: u32, 3 │ height: u32, diff --git a/tests/snapshots/output/grid.snapshot.txt b/tests/snapshots/output/grid.snapshot.txt index bef9a7e65d..5b970581f5 100644 --- a/tests/snapshots/output/grid.snapshot.txt +++ b/tests/snapshots/output/grid.snapshot.txt @@ -1,3 +1,4 @@ +──────────────────────────────────────────────────────────────────────────────── struct Rectangle { width: u32, height: u32, diff --git a/tests/snapshots/output/grid_numbers.snapshot.txt b/tests/snapshots/output/grid_numbers.snapshot.txt index 799f9617ce..0961466704 100644 --- a/tests/snapshots/output/grid_numbers.snapshot.txt +++ b/tests/snapshots/output/grid_numbers.snapshot.txt @@ -1,3 +1,4 @@ +─────┬────────────────────────────────────────────────────────────────────────── 1 │ struct Rectangle { 2 │ width: u32, 3 │ height: u32,