-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
[3.x] Fix cursor after last character INDEX in line counting as a character outside of the viewing area #81352
Conversation
…de of the viewing area The cursor column can be after the last_visible_char index and still be visible.
I would suggest to open a 4.x fix as well, we tend to prioritise getting fixes on the main development branch first |
I'm currently trying to fix it for 4.x and will make a draft soon (tonight). That code has been overhauled, so it's rather different. In the linked issue you can see that the bug is not exactly the same. Well, I'm on it |
Great! Sorry missed that detail as the relevant code seemed the same and had the same range check offset |
Haha, thought the same! So I tried the same fix, but it just fixes one area and breaks another... |
@Paulb23, could you please have a look at this micro PR as well? |
Thanks! |
@akien-mga: can we cherrypick this for 3.5, please? 3.6 is months (a year?) away from being released (based on past 3.6 dev snapshot dates). |
Cherry-picked for 3.5.3. |
Fixes #81349 for Godot 3.x
This fix should be ok like this, because last character and cursor are rendered together (at least on my machine: Ubuntu)
Before fix
before.webm
After fix
after.webm