ack3
ack3 copied to clipboard
Optimize for finding a --range-end
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.