mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-02 04:09:18 -05:00
Update raygui.h
This commit is contained in:
@ -2582,7 +2582,9 @@ 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: >= cursor+codepointsize and <= length-codepointsize
|
||||||
|
|
||||||
// Prevent cursor index from decrementing past 0
|
// Prevent cursor index from decrementing past 0
|
||||||
if (textBoxCursorIndex > 0)
|
if (textBoxCursorIndex > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user