aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c
index a5cedbd8d..a93e5494a 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1108,6 +1108,8 @@ static void process_files(void)
1108 int old_matched, matched; 1108 int old_matched, matched;
1109 1109
1110 old_matched = sed_cmd->in_match; 1110 old_matched = sed_cmd->in_match;
1111 if (!old_matched)
1112 sed_cmd->end_line = sed_cmd->end_line_orig;
1111 1113
1112 /* Determine if this command matches this line: */ 1114 /* Determine if this command matches this line: */
1113 1115