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 TextEdit crash with multiple carets disabled and paste #91457

Merged
merged 1 commit into from
May 2, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented May 2, 2024

add_caret_at_carets now only runs if multiple carets are enabled. Added a simple test, and a check to make sure add caret worked.
menu_option(2) calls paste which used the wrong value in the for loop condition.
Made sure multiple caret functionality only runs if it is enabled.
Made sure that multi caret ignore carets will only be added to if there is multiple carets, since it is to prevent overlapping carets from affecting anything.

@kitbdev kitbdev requested review from a team as code owners May 2, 2024 13:28
@AThousandShips AThousandShips added this to the 4.3 milestone May 2, 2024
@akien-mga akien-mga merged commit 4e9543d into godotengine:master May 2, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@kitbdev kitbdev deleted the fix-multicaret-disabled branch May 2, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants