From c9de9a30bd682bd3d36f87e47f4b1dd9d5854dd9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 27 Sep 2011 19:34:49 -0700 Subject: * match.c (match_files): One more fix to this, argh. The test for !data should be done after matching, before incrementing to the next line. Then it is a true bottom of the loop test. This commit allows @(skip) @first_line @(skip nil 3) @(eof) to correctly match the first line of the input, not the fourth one from the bottom, since the second skip has an unbounded range. --- ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 84ca8d90..25868383 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2011-09-27 Kaz Kylheku + + * match.c (match_files): One more fix to this, argh. + The test for !data should be done after matching, + before incrementing to the next line. Then it is a true + bottom of the loop test. This commit allows + @(skip) + @first_line + @(skip nil 3) + @(eof) + to correctly match the first line of the input, not + the fourth one from the bottom, since the + second skip has an unbounded range. + 2011-09-27 Kaz Kylheku * match.c (match_files): Another bugfix to skip. -- cgit v1.2.3