the_silver_searcher/tests/column.t
Alissa Sobo 05bea43f55 Fix ackmate column numbers for multi-line matches
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2017-05-26 19:55:14 -07:00

18 lines
342 B
Perl

Setup:
$ . $TESTDIR/setup.sh
$ printf "blah\nblah2\n" > blah.txt
Ensure column is correct:
$ ag --column "blah\nb"
blah.txt:1:1:blah
blah.txt:2:0:blah2
# Test ackmate output. Not quite right, but at least offsets are in the
# ballpark instead of being 9 quintillion
$ ag --ackmate "lah\nb"
:blah.txt
1;blah
2;1 5:blah2