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