What version of ripgrep are you using?
ripgrep 13.0.0
-SIMD -AVX (compiled)
How did you install ripgrep?
What operating system are you using ripgrep on?
Debian unstable
Describe your bug.
The -A option completely overrides -C:
$ seq 1 10 | rg 5 -C1 -A2
5
6
7
What is the expected behavior?
The -A option should affect only trailing context.
This is how it works in GNU grep:
$ seq 1 10 | grep 5 -C1 -A2
4
5
6
7
What version of ripgrep are you using?
How did you install ripgrep?
What operating system are you using ripgrep on?
Debian unstable
Describe your bug.
The -A option completely overrides -C:
What is the expected behavior?
The -A option should affect only trailing context.
This is how it works in GNU grep: