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 selection rendering on ligatures in both renderers #5276

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Jan 6, 2025

Fixes #5231

The solution I came up with was to simply disable ligatures when the selection state is not consistent. This works quite well and I'll likely do the same thing for cursor navigation (#5230):

Recording 2025-01-06 at 10 54 11

Another case handled:

Screenshot 2025-01-06 at 11 03 17 am

@Tyriar Tyriar added this to the 6.0.0 milestone Jan 6, 2025
@Tyriar Tyriar self-assigned this Jan 6, 2025
@Tyriar Tyriar marked this pull request as ready for review January 6, 2025 19:03
@Tyriar Tyriar enabled auto-merge January 6, 2025 19:04
@Tyriar Tyriar merged commit d1b01c5 into xtermjs:master Jan 6, 2025
12 checks passed
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.

Terminal ligatures don't visually indicate how much of the ligature is selected
1 participant