From 280e7208d8b8bc7abc8d5d6a49abc0977004ee56 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 15 Mar 2014 14:33:09 +0000 Subject: Add vstr_ins and vstr_cut_out; improve stmhal readline. --- stm/pyexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stm') diff --git a/stm/pyexec.c b/stm/pyexec.c index 75fe87c88..e3e50441d 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) { -- cgit v1.2.3