aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c4
-rw-r--r--editors/vi.c2
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
103 103
104 regmatch_t regmatch[10]; 104 regmatch_t regmatch[10];
105 regex_t *previous_regex_ptr; 105 regex_t *previous_regex_ptr;
106 106
107 /* linked list of sed commands */ 107 /* linked list of sed commands */
108 sed_cmd_t sed_cmd_head, *sed_cmd_tail; 108 sed_cmd_t sed_cmd_head, *sed_cmd_tail;
109 109
@@ -780,7 +780,7 @@ restart:
780 || (sed_cmd->beg_line > 0 && (sed_cmd->beg_line == linenum)) 780 || (sed_cmd->beg_line > 0 && (sed_cmd->beg_line == linenum))
781 781
782 /* Or does this line match our begin address regex? */ 782 /* Or does this line match our begin address regex? */
783 || (sed_cmd->beg_match && 783 || (sed_cmd->beg_match &&
784 !regexec(sed_cmd->beg_match, pattern_space, 0, NULL, 0)) 784 !regexec(sed_cmd->beg_match, pattern_space, 0, NULL, 0))
785 785
786 /* Or did we match last line of input? */ 786 /* 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()
3923 } 3923 }
3924 return; 3924 return;
3925} 3925}
3926#endif /* CONFIG_FEATURE_VI_CRASHME */ 3926#endif /* CONFIG_FEATURE_VI_CRASHME */