printer: tweak binary detection message format

This roughly matches similar changes made in GNU grep recently.
This commit is contained in:
Andrew Gallant
2020-11-02 10:37:49 -05:00
parent 810be0b348
commit 2819212f89
4 changed files with 29 additions and 17 deletions

View File

@@ -2,6 +2,19 @@ TBD
===
Unreleased changes. Release notes have not yet been written.
In this release, a small tweak has been made to the output format when a binary
file is detected. Previously, it looked like this:
```
Binary file FOO matches (found "\0" byte around offset XXX)
```
Now it looks like this:
```
FOO: binary file matches (found "\0" byte around offset XXX)
```
Bug fixes:
* [BUG #1277](https://github.com/BurntSushi/ripgrep/issues/1277):