-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Unicode input on GuiTextBox()
#399
Comments
@electrolys Good catch! Please, could you send a PR with the fix! Thanks! |
raysan5
changed the title
Need to fix unicode input on GuiTextBox
Issue with Unicode input on May 7, 2024
GuiTextBox()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gui textbox doesn't handle adding and removing characters properly and causes an underflow (at adding) and overflow (at removal)
at lines
raygui/src/raygui.h
Line 2582 in 6f53233
https://github.com/raysan5/raygui/blob/6f532337ff2d6dc14ba3a5f5b7ee63f9d90ff13b/src/raygui.h#L2562C21-L2562C113
you are just comparing the variable i with the text length or cursor when you really need to >= cursor+codepointsize and <= length-codepointsize
The text was updated successfully, but these errors were encountered: