mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07: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 {
|
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"-");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user