summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/widget/strw.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/eve/widget/strw.c')
-rw-r--r--code/fe310/eos/eve/widget/strw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/fe310/eos/eve/widget/strw.c b/code/fe310/eos/eve/widget/strw.c
index 5f7e63d..2a80a28 100644
--- a/code/fe310/eos/eve/widget/strw.c
+++ b/code/fe310/eos/eve/widget/strw.c
@@ -293,7 +293,7 @@ void eve_strw_putc(void *_page, int c) {
switch (c) {
case CH_BS:
if (cursor1->ch > 0) {
- del_c = utf8_seek(str, -1, &uc);
+ del_c = -utf8_seek(str, -1, &uc);
del_w = eve_font_ch_w(widget->font, uc);
memmove(str - del_c, str, widget->str_len - cursor1->ch + 1);
widget->str_len -= del_c;