Incorrect line numbers returned when match is inside archive
Author: agamottoCreated Apr 2, 2026Updated Apr 2, 2026
Labelsbug
Describe the bug
Incorrect line numbers returned when match is inside archive
To Reproduce
Attach example file: Test directory contains both https://anvil-editor.net/releases/anvil-src-v0.7.tar.gz archive and the extracted archive directory.
Run command: rga --line-number "## Mouse Use on a Layout Box" .
Output
.\anvil\README.md
27:## Mouse Use on a Layout Box:
.\anvil-src-v0.7.tar.gz
15323:anvil-src-v0.7/anvil/README.md: ## Mouse Use on a Layout Box:15323 is returned for the match inside the archive.
Operating System and Version Windows 11 and Debian/WSL
Output of rga --version
0.10.9 and 0.10.10
Source: phiresky/ripgrep-all