diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 02:06:49 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 02:06:49 +0200 |
commit | 3a2958ab8268b3388c780f902e74ad0c0d24c5c9 (patch) | |
tree | 41c007f99bef1e299bc90f21bdb4e434be0882d1 /code/fe310/eos/eve/widget/textw.c | |
parent | c57ca4c6305ca7fc1ed6c75ddbecc254604b666f (diff) |
unicode seek fix
Diffstat (limited to 'code/fe310/eos/eve/widget/textw.c')
-rw-r--r-- | code/fe310/eos/eve/widget/textw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/fe310/eos/eve/widget/textw.c b/code/fe310/eos/eve/widget/textw.c index 03f6c0a..bf075cf 100644 --- a/code/fe310/eos/eve/widget/textw.c +++ b/code/fe310/eos/eve/widget/textw.c @@ -309,7 +309,7 @@ void eve_textw_putc(void *_page, int c) { switch (c) { case CH_BS: if (cursor1->ch > 0) { - del_c = utf8_seek(text, -1, &uc); + del_c = -utf8_seek(text, -1, &uc); ch_w = eve_font_ch_w(widget->font, uc); memmove(text - del_c, text, widget->text_len - cursor1->ch + 1); cursor1->ch -= del_c; |