We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GuiTextBox()
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
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:
@electrolys Good catch! Please, could you send a PR with the fix! Thanks!
Sorry, something went wrong.
It seems there is no interest in this fix...
Do not overflow when deleting unicode in GuiTextBox()
54d9366
raysan5#399
No branches or pull requests
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: