From aa4e5092f58f5a11018e569aee9cf037daf8c5d6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 28 May 2012 02:48:55 +0200 Subject: Apply post-1.20.0 patches, bump version to 1.20.1 Signed-off-by: Denys Vlasenko --- editors/sed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editors/sed.c') diff --git a/editors/sed.c b/editors/sed.c index 4e9babb9d..3ee8edc43 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -743,7 +743,7 @@ static int do_subst_command(sed_cmd_t *sed_cmd, char **line_p) */ if (!G.regmatch[0].rm_so && !G.regmatch[0].rm_eo && match_count) { pipe_putc(*line++); - continue; + goto next; } match_count++; @@ -755,7 +755,7 @@ static int do_subst_command(sed_cmd_t *sed_cmd, char **line_p) ) { for (i = 0; i < G.regmatch[0].rm_eo; i++) pipe_putc(*line++); - continue; + goto next; } /* print everything before the match */ @@ -773,7 +773,7 @@ static int do_subst_command(sed_cmd_t *sed_cmd, char **line_p) /* if we're not doing this globally, get out now */ if (sed_cmd->which_match != 0) break; - + next: if (*line == '\0') break; -- cgit v1.2.3-55-g6feb