ack3 icon indicating copy to clipboard operation
ack3 copied to clipboard

Optimize for finding a --range-end

Open petdance opened this issue 5 years ago • 0 comments

If I search for something like

ack foo --range-end=marker filename

with a --range-end without a --range-start, then once ack hits that range end, there's no point in scanning the rest of the file. We can stop at that point, assuming we're not doing --passthru or -A.

petdance avatar Feb 06 '20 19:02 petdance