diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index 9f3af33ed..f8e3720b5 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -103,7 +103,7 @@ struct sed_globals regmatch_t regmatch[10]; regex_t *previous_regex_ptr; - + /* linked list of sed commands */ sed_cmd_t sed_cmd_head, *sed_cmd_tail; @@ -780,7 +780,7 @@ restart: || (sed_cmd->beg_line > 0 && (sed_cmd->beg_line == linenum)) /* Or does this line match our begin address regex? */ - || (sed_cmd->beg_match && + || (sed_cmd->beg_match && !regexec(sed_cmd->beg_match, pattern_space, 0, NULL, 0)) /* Or did we match last line of input? */ |