Skip to content

Fix selection rendering on ligatures in both renderers#5276

Merged
Tyriar merged 4 commits intoxtermjs:masterfrom
Tyriar:ligature_selection
Jan 6, 2025
Merged

Fix selection rendering on ligatures in both renderers#5276
Tyriar merged 4 commits intoxtermjs:masterfrom
Tyriar:ligature_selection

Conversation

@Tyriar
Copy link
Copy Markdown
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
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