-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--count --multiline doesn't behave as documented #2852
Comments
I would like to work on this issue.. Can anyone help me how should I get started ? |
I haven't looked much at the code, but I think I get what's happening. The help says
And sure enough:
In words: when the regex doesn't contain |
Could it be related to #2779? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?
14.1.0
How did you install ripgrep?
Reproduces with distro package and
cargo install
ed version.What operating system are you using ripgrep on?
Fedora 40
Describe your bug.
From the
--help
output:However, the behavior I'm seeing is that
--count
still behaves as "count the number matching lines" and not as "count the number of matches" even under multiline mode.What are the steps to reproduce the behavior?
What is the actual behavior?
What is the expected behavior?
The last command should print 8 (or the documentation should be changed).
The text was updated successfully, but these errors were encountered: