Missing break was screwing up 'y//' command. Bug #248.

This commit is contained in:
Rob Landley 2005-09-02 00:10:06 +00:00
parent 92255d60b8
commit babd3fbba6

View File

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