delete pattern space before updating ranges on c,d,D

This commit is contained in:
Evan Gates 2015-06-03 07:31:31 -07:00 committed by sin
parent 78b285deb6
commit 844267bce4

1
sed.c
View File

@ -1665,6 +1665,7 @@ app_line(void)
static void
new_next(void)
{
*patt.str = '\0';
update_ranges(pc + 1, prog + pcap);
new_line();
pc = prog - 1;