Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events
This prevents input text from being split across Unicode combining or modifier characters, and in practice allocations will rarely happen.
This commit is contained in:
1 parent
2a1660ab51
commit
75ea3a8d32
8 files changed
+25
-12
No files matched your search
@@ -770,6 +770,7 @@ int main(int argc, char *argv[])
|
||||
/* is committed */
|
||||
markedText[0] = 0;
|
||||
Redraw();
|
||||
SDL_CleanupEvent(&event);
|
||||
break;
|
||||
|
||||
case SDL_EVENT_TEXT_EDITING:
|
||||
|
||||
Reference in new issue
Block a user