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

highlight non-bar cursors #5575

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

pascalkuthe
Copy link
Member

Fixes #1568

The logic is a bit more complicated than originally described in the issue. I think all non-block cursors don't show well that the cursor is part of the selection. Therefore, the cursor is always highlighted as a selection now. To avoid weird looking regressions in insert mode I added two special cases so that a (and i with just a single grapheme selected) don't regress.

@pascalkuthe pascalkuthe added C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Jan 18, 2023
Copy link
Contributor

@pickfire pickfire 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. Thanks.

@pickfire pickfire merged commit 7868e5f into helix-editor:master Jan 18, 2023
@pascalkuthe pascalkuthe deleted the cursor-highlights branch January 18, 2023 16:29
@larsblumberg
Copy link

Thanks Pascal, this fixes a visual annoyance and had learned to live with. Looking forward to the next release as I didn't install dev builds so far. Maybe something I should practice though :-)

kirawi pushed a commit to kirawi/helix that referenced this pull request Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Render selection 1 character wider when there is a bar or underline cursor with selection to the right
3 participants