diff options
-rw-r--r-- | editors/sed.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index 43395b392..b73d660ed 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1014,6 +1014,8 @@ static void process_file(FILE * file) } else { sed_cmd = branch_to(sed_cmd->label); } + /* Reset the substitution flag */ + substituted = 0; } break; case 'y':{ |