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: handle multiline selection starting at trailing space #5691

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Nov 3, 2024

In paintSelectionStart: When the selection ends in the current message, we need to call paintSelectionEnd (i.e. we need to return a line-index). When the selection doesn't end in the current message, we need to paint the start and all lines below.
Neither was done when the selection started at a trailing space.

Fixes #5689.

@pajlada pajlada merged commit 6830427 into Chatterino:master Nov 3, 2024
18 checks passed
@Nerixyz Nerixyz deleted the fix/selection-again branch November 3, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection of multi-line messages renders incorrectly
2 participants