Fix recursion problem
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 04:55:29 +0000 (04:55 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 04:55:29 +0000 (04:55 -0000)
editors/sed.c

index 43395b392cfb5f6b8fc9edac8f7f34ce7ff968e0..b73d660ed7aa84de0f266ede6e85624d8d15ed6c 100644 (file)
@@ -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':{