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

OutputWindow: text selection can start at index 0. #7951

Merged

Conversation

mbien
Copy link
Member

@mbien mbien commented Nov 10, 2024

trivial fix.

AbstractOutputPane#getSelection() is only called from within OutputTab#actionPerformed and isn't public API. This should make this fix local and low risk since it doesn't affect anything outside of the find and filter actions of the same module.

targets delivery

closes #7942

@mbien mbien added Platform [ci] enable platform tests (platform/*) ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Nov 10, 2024
@mbien mbien added this to the NB24 milestone Nov 10, 2024
Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

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

Works as it should and change makes sense. Thank you.

@ebarboni ebarboni merged commit 6ea89fa into apache:delivery Nov 13, 2024
32 checks passed
@mbien
Copy link
Member Author

mbien commented Nov 13, 2024

tracked this bug down just for fun. It got introduced 2005 (19 years ago :)) and moved a little bit through the code base until it found its resting place in AbstractOutputPane.
https://github.com/emilianbold/netbeans-releases/blame/a24039b725e379551f3d2ad16959dd01dfd906a2/core.output2/src/org/netbeans/core/output2/Controller.java#L365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Platform [ci] enable platform tests (platform/*)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console 'Find' Doesn't Populate Correctly When the First Character is Selected
3 participants