mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-03-17 20:28:03 +02:00
Fix context writing.
Don't show the filename twice... (Copy/paste error).
This commit is contained in:
parent
e9a89520cf
commit
8023f6fd03
@ -213,10 +213,6 @@ impl<W: Send + io::Write> Printer<W> {
|
||||
if self.heading && self.with_filename && !self.has_printed {
|
||||
self.write_heading(path.as_ref());
|
||||
} else if !self.heading && self.with_filename {
|
||||
self.write(path.as_ref().to_string_lossy().as_bytes());
|
||||
self.write(b":");
|
||||
}
|
||||
if !self.heading && self.with_filename {
|
||||
self.write(path.as_ref().to_string_lossy().as_bytes());
|
||||
self.write(b"-");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user