1
0
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:
Andrew Gallant 2016-09-05 20:18:31 -04:00
parent e9a89520cf
commit 8023f6fd03

View File

@ -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"-");
}