You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I search ^$, I get, for each file, a correctly formatted result line for the first empty line in the file, but the other result lines have extra color escape codes for a 'match' before the line number.
The command I'm using to demonstrate is rg --color ansi --colors 'path:none' --colors 'line:none' --colors 'match:fg:red' --colors 'match:style:nobold' --heading --line-number '^$' > out.txt - the extra --colors flags are not necessary to the repro, they just make it a little easier to see the issue. And this might be a good time to ask whether you've made any progress towards #244 😁
You can see the first line starts with the 2: surrounded by escapes. But other lines first have escape codes for a match, then 4:, then another set of codes for a match.
microsoft/vscode#31252
When I search
^$
, I get, for each file, a correctly formatted result line for the first empty line in the file, but the other result lines have extra color escape codes for a 'match' before the line number.The command I'm using to demonstrate is
rg --color ansi --colors 'path:none' --colors 'line:none' --colors 'match:fg:red' --colors 'match:style:nobold' --heading --line-number '^$' > out.txt
- the extra--colors
flags are not necessary to the repro, they just make it a little easier to see the issue. And this might be a good time to ask whether you've made any progress towards #244 😁Result
You can see the first line starts with the
2:
surrounded by escapes. But other lines first have escape codes for a match, then4:
, then another set of codes for a match.Expected:
I search another file for
^foo$
.The text was updated successfully, but these errors were encountered: