Inside the latest Ack2 repository I search for this:
$ ack "current\ndirectory.*then"
249:Search for PATTERN in each source file in the tree from the current
directory on down. If any files or directories are specified, then
But if I search the same with the context:
$ ack -A2 "current\ndirectory.*then"
$
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.
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.