Reset line number to 0 for new files

pull/137/head
sharkdp 6 years ago
parent 96cc391f2d
commit a0ae089c4a

@ -72,6 +72,8 @@ impl<'a> Printer<'a> {
} }
pub fn print_header(&mut self, filename: Option<&str>) -> Result<()> { pub fn print_header(&mut self, filename: Option<&str>) -> Result<()> {
self.line_number = 0;
if !self.config.output_components.header() { if !self.config.output_components.header() {
return Ok(()); return Ok(());
} }

Loading…
Cancel
Save