Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes hovering to show tooltip when over the end of the last character of a symbol (where clicking would place the caret at the end).
This should be useful for cases like godotengine/godot-proposals#11365 and #102380, since selecting the entire word puts the caret at the last character.
Unifies the word detection behavior to the one that the rest of the TextEdit uses.
This fixes hovering to show tooltip not working correctly when next to unicode word break characters. Custom word separators are now respected too.
Removed the old word detection function.
Moves the string detection logic to use CodeEdit's delimiter system. Though this means it won't work in comments anymore.
Also made the tooltip hover work when text is selected. There shouldn't be any problem with allowing this, since the tooltip doesn't show if mouse buttons are held. Related: godotengine/godot-proposals#12492