From 3977145137e575eaa4dd2b889018f73b461cdc43 Mon Sep 17 00:00:00 2001 From: vurtun Date: Wed, 28 Sep 2016 18:28:25 +0200 Subject: [PATCH] Fixed drawing bug inside edit box for UTF text --- nuklear.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuklear.h b/nuklear.h index f16dee50..fe49cf88 100644 --- a/nuklear.h +++ b/nuklear.h @@ -14325,7 +14325,7 @@ nk_do_edit(nk_flags *state, struct nk_command_buffer *out, }} } else { /* not active so just draw text */ - int l = nk_str_len(&edit->string); + int l = nk_str_len_char(&edit->string); const char *begin = nk_str_get_const(&edit->string); const struct nk_style_item *background;