mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 04:21:06 +00:00
Fix #798
This commit is contained in:
parent
d1bb47d741
commit
1225e65299
@ -79,7 +79,10 @@ impl<'b> Controller<'b> {
|
|||||||
writer: &mut dyn Write,
|
writer: &mut dyn Write,
|
||||||
input_file: InputFile<'a>,
|
input_file: InputFile<'a>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
printer.print_header(writer, input_file)?;
|
if !reader.first_line.is_empty() || self.config.output_components.header() {
|
||||||
|
printer.print_header(writer, input_file)?;
|
||||||
|
}
|
||||||
|
|
||||||
if !reader.first_line.is_empty() {
|
if !reader.first_line.is_empty() {
|
||||||
self.print_file_ranges(printer, writer, reader, &self.config.line_ranges)?;
|
self.print_file_ranges(printer, writer, reader, &self.config.line_ranges)?;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user