diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 4 | ||||
-rw-r--r-- | editors/vi.c | 2 |
2 files changed, 3 insertions, 3 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? */ diff --git a/editors/vi.c b/editors/vi.c index 3cbf6937d..8ff118ffb 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -3923,4 +3923,4 @@ static void crash_test() } return; } -#endif /* CONFIG_FEATURE_VI_CRASHME */ +#endif /* CONFIG_FEATURE_VI_CRASHME */ |