From 30b47df86be1b7be99dc0987c3f397f09086bd6e Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 30 Mar 2003 08:40:09 +0000 Subject: Small fix for sed 'y' command --- editors/sed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/sed.c b/editors/sed.c index 4c535b1e3..13155a97e 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -343,7 +343,7 @@ static int parse_translate_cmd(sed_cmd_t * const sed_cmd, const char *cmdstr) sed_cmd->translate[i * 2] = match[i]; sed_cmd->translate[(i * 2) + 1] = replace[i]; } - return(idx); + return(idx + 1); } static int parse_edit_cmd(sed_cmd_t *sed_cmd, const char *editstr) -- cgit v1.2.3