1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-07-11 14:30:24 +02:00
This commit is contained in:
Andrew Gallant
2017-10-21 20:32:43 -04:00
parent 08060a2105
commit f0028a66ec

View File

@ -474,7 +474,7 @@ impl<W: WriteColor> Printer<W> {
fn write_colored<F>(&mut self, buf: &[u8], get_color: F) fn write_colored<F>(&mut self, buf: &[u8], get_color: F)
where F: Fn(&ColorSpecs) -> &ColorSpec where F: Fn(&ColorSpecs) -> &ColorSpec
{ {
let _ = self.wtr.set_color( get_color(&self.colors) ); let _ = self.wtr.set_color(get_color(&self.colors));
self.write(buf); self.write(buf);
let _ = self.wtr.reset(); let _ = self.wtr.reset();
} }