sed: fix a case when one-line range matches past lines. Closes bug 1867.
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Jun 2010 23:29:52 +0000 (01:29 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Jun 2010 23:29:52 +0000 (01:29 +0200)
commitbf5f99ffb245e9039df62e5d3f77674fd7b3b2a7
tree4e10b657ca0be2ec90d06442c45872db55fca41d
parent79b3d42e13814f984ec35ec632d34db301871567
sed: fix a case when one-line range matches past lines. Closes bug 1867.

function                                             old     new   delta
process_files                                       2096    2107     +11
add_cmd                                             1142    1132     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-10)              Total: 1 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/sed.c
testsuite/sed.tests