-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
TextField crash when writing brackets if color markup is enabled #4576
Comments
I've recently come across this problem and found a lot of GitHub issues about it. It's an old case and seems like @badlogic's comment is still reflects reality:
But I'm curious why not just disable color markup completely for input widgets? I'm pretty sure noone really uses it for @NathanSweet I can make a PR if the approach is fine. |
@metaphore Disabling color markup for text field/areas sounds OK. |
I've encountered this crash too, as it's not documented (outside of github issues) that markup should not be used in TextAreas. |
Issue details
Opening and closing brackets
[]
when color markup is enabled causes anIndexOutOfBoundsException
regardless of how many characters are between the bracketsReproduction steps/code
Version of LibGDX and/or relevant dependencies
Attempted on LibGDX versions 1.9.5 and 1.9.6-SNAPSHOT
Stacktrace
Please select the affected platforms
The text was updated successfully, but these errors were encountered: