sam: only skip the last empty match if it follows a newline
commit80d0291b2ee9e7aae6683c973c263efbc02259c4
authorMarc André Tanner <mat@brain-dump.org>
Mon, 25 Jan 2021 12:38:37 +0000 (25 13:38 +0100)
committerMarc André Tanner <mat@brain-dump.org>
Mon, 25 Jan 2021 13:02:31 +0000 (25 14:02 +0100)
tree1ce66f891e7ea9ee1d21b4287564de55466d4edd
parent7b6c70ec6ea064aabd8e99b2d0d8ba285903bd0d
sam: only skip the last empty match if it follows a newline

This further tweaks the hack introduced to ignore the last match of ^
at the end of the file, see 1a158268c7693b00bf43c7e81034816d8d00358c.
sam.c