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 find result current match count issues #93674

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Jun 27, 2024

Fixes match count when searching current and not selecting a match. It should always be the count of the previous one found (or 0 if before all matches).
Found by #93056 (comment)

To reproduce, search for something, move the caret, and use ctrl+f to search current, then hit enter to search next.

godot find match count off match

Fixes edge case where count being wrong when switching between forward/backwards search and the matches are different. To reproduce, try searching for ss in sssss.

godot find match count chage dir

Fixes inconsistent current match count for searching current when caret is unselected inside of a match, based on where it was previously.

@kitbdev kitbdev requested a review from a team as a code owner June 27, 2024 18:34
@akien-mga akien-mga added this to the 4.3 milestone Jun 28, 2024
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@akien-mga akien-mga merged commit 7e644fb into godotengine:master Jun 28, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@kitbdev kitbdev deleted the fix-find-result-count branch June 28, 2024 12:40
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.

None yet

2 participants