summaryrefslogtreecommitdiffstatshomepage
path: root/stm/pyexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/pyexec.c')
-rw-r--r--stm/pyexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/pyexec.c b/stm/pyexec.c
index 75fe87c88b..e3e50441dd 100644
--- a/stm/pyexec.c
+++ b/stm/pyexec.c
@@ -88,7 +88,7 @@ int readline(vstr_t *line, const char *prompt) {
escape = true;
} else if (c == 127) {
if (vstr_len(line) > len) {
- vstr_cut_tail(line, 1);
+ vstr_cut_tail_bytes(line, 1);
stdout_tx_str("\b \b");
}
} else if (32 <= c && c <= 126) {