Skip to content
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

Fix selecting start of wrapped line with mouse #91978

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented May 15, 2024

In both TextEdit and RichTextLabel when selecting:
Fixes clicking at the start of wrapped line putting the caret after the first character.

In TextEdit:
Fixes moving caret to start of wrapped line with up/down moving to after the first character.
Fixes setting last fit at start of wrapped line acting as the end of the previous wrap.

Removed some dead code in TextEdit.
Also made sure it works when using indented wrapped lines and characters like ❤️‍🔥.
Added tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't select first character with mouse in script editor
2 participants