aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
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)