mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-06-25 14:22:54 +02:00
Fix context writing.
Don't show the filename twice... (Copy/paste error).
This commit is contained in:
@ -213,10 +213,6 @@ impl<W: Send + io::Write> Printer<W> {
|
|||||||
if self.heading && self.with_filename && !self.has_printed {
|
if self.heading && self.with_filename && !self.has_printed {
|
||||||
self.write_heading(path.as_ref());
|
self.write_heading(path.as_ref());
|
||||||
} else if !self.heading && self.with_filename {
|
} 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(path.as_ref().to_string_lossy().as_bytes());
|
||||||
self.write(b"-");
|
self.write(b"-");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user