summaryrefslogtreecommitdiff
path: root/stm/pyexec.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-15 14:33:09 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-15 14:33:09 +0000
commit280e7208d8b8bc7abc8d5d6a49abc0977004ee56 (patch)
treee0b8a3e219eeb98d3f618e1f57864868387d75af /stm/pyexec.c
parent8b96af69077d2c9b4e523e78497e639fde1efc68 (diff)
Add vstr_ins and vstr_cut_out; improve stmhal readline.
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 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) {