Update raygui.h

This commit is contained in:
Ray
2024-09-24 20:01:51 +02:00
parent 73f85d82f6
commit 1e03efca48

View File

@ -2657,8 +2657,6 @@ int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode)
// Move backward text from cursor position
for (int i = (textBoxCursorIndex - prevCodepointSize); i < textLength; i++) text[i] = text[i + prevCodepointSize];
// TODO Check: i >= (cursor + codepointsize) && (i <= length-codepointsize) ???
textBoxCursorIndex -= codepointSize;
textLength -= codepointSize;
}