mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-26 09:09:17 -05:00
Update raygui.h
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user