Use proper UTF-8 handling for formatting code detection

This commit is contained in:
Alexander Overvoorde 2016-02-10 19:52:36 +01:00
parent 5adb18528e
commit 417f78b3ea
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ void platform_process_messages()
break;
// Entering formatting characters is not allowed
if (utf8_is_format_code((int)e.text.text[0]))
if (utf8_is_format_code(utf8_get_next(e.text.text, NULL)))
break;
utf8 *newText = e.text.text;