forked from rosebudai/OpenRCT2-Web
Use proper UTF-8 handling for formatting code detection
This commit is contained in:
1 parent
5adb18528e
commit
417f78b3ea
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user