Missing break was screwing up 'y//' command. Bug #248.
authorRob Landley <rob@landley.net>
Fri, 2 Sep 2005 00:10:06 +0000 (00:10 -0000)
committerRob Landley <rob@landley.net>
Fri, 2 Sep 2005 00:10:06 +0000 (00:10 -0000)
editors/sed.c

index a0a127e2b758f396cbccc320998e97e9e49a5e3d..166e837da12512e3d639ad4b9f2243687d571f69 100644 (file)
@@ -1025,6 +1025,7 @@ restart:
                                                        for (j = 0; sed_cmd->string[j]; j += 2) {
                                                                if (pattern_space[i] == sed_cmd->string[j]) {
                                                                        pattern_space[i] = sed_cmd->string[j + 1];
+                                                                       break;
                                                                }
                                                        }
                                                }