Fix merge bug introduced with #211 (#212)

This commit is contained in:
gulrak 2022-06-09 22:42:33 +02:00 committed by GitHub
parent fc6742a5fe
commit 38236a5513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2320,7 +2320,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
int codepoint = GetCharPressed();
int textLength = (int)strlen(text); // Length in bytes (UTF-8 string)
int byteSize = 0;
const char *textUTF8 = CodepointToUTF8(key, &byteSize)
const char *textUTF8 = CodepointToUTF8(codepoint, &byteSize);
// Introduce characters
if ((textLength + byteSize) < textSize)