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 reverse selection not updating new combo location #27723

Merged
merged 6 commits into from
Mar 28, 2024

Conversation

64ArthurAraujo
Copy link
Contributor

This PR fixes #27319 (both catch and standard).

before.mp4
after.mp4

@bdach
Copy link
Collaborator

bdach commented Mar 26, 2024

Unit tests missing.

@64ArthurAraujo
Copy link
Contributor Author

Unit tests missing.

Since it appears that there is no tests for reverse pattern yet, would it be correct to start adding them to TestSceneOsuComposerSelection and create a new one for catch at here ?

@bdach
Copy link
Collaborator

bdach commented Mar 26, 2024

would it be correct to start adding them to TestSceneOsuComposerSelection and create a new one for catch at here ?

Sure.

@64ArthurAraujo
Copy link
Contributor Author

64ArthurAraujo commented Mar 27, 2024

Since the tests got so big i decided to create its own classes for it: TestSceneOsuReverseSelection and TestSceneCatchReverseSelection

@bdach bdach self-requested a review March 28, 2024 08:51
@bdach
Copy link
Collaborator

bdach commented Mar 28, 2024

@64ArthurAraujo i've simplfied the implementation of the fix and also significantly simplified the test coverage. please make sure to check those changes so that future changes can take less time to get in.

@bdach bdach merged commit 21201e6 into ppy:master Mar 28, 2024
11 of 17 checks passed
@64ArthurAraujo 64ArthurAraujo deleted the editor-fix-reverse-selection branch March 28, 2024 11:23
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.

Reverse selection should adjust new combo flag if entire chunks of combo are reversed
4 participants