From babd3fbba668e04841cbe683ca49097fb871fca8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 2 Sep 2005 00:10:06 +0000 Subject: Missing break was screwing up 'y//' command. Bug #248. --- editors/sed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/editors/sed.c b/editors/sed.c index a0a127e2b..166e837da 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -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; } } } -- cgit v1.2.3