Closed nowox closed 9 years ago
This is definitely a bug; both in the inconsistency in operation between two modes that should be consistent, but also in your first example. Ack is line-based (see Can I do multi-line regexes? in the FAQ), but we read the file into a single chunk sometimes for optimization purposes.
Ok, this is fixed in dev now. Thanks for the report!
Inside the latest Ack2 repository I search for this:
But if I search the same with the context:
I don't see anything. This is because the way ack parse files. It does parse the file iterating lines when context is enabled and the whole file else. No exception is handled here. This is a bug.