mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	Reset line number to 0 for new files
This commit is contained in:
		@@ -72,6 +72,8 @@ impl<'a> Printer<'a> {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub fn print_header(&mut self, filename: Option<&str>) -> Result<()> {
 | 
			
		||||
        self.line_number = 0;
 | 
			
		||||
 | 
			
		||||
        if !self.config.output_components.header() {
 | 
			
		||||
            return Ok(());
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user