Disable ligatures when cursor is in range

Fixes #5230
This commit is contained in:
Daniel Imms
2025-01-06 11:08:57 -08:00
parent c7a1e0aea3
commit 9912e7b331
2 changed files with 6 additions and 0 deletions
@@ -127,6 +127,8 @@ export class DomRendererRowFactory {
for (i = range[0] + 1; i < range[1]; i++) {
isValidJoinRange &&= (firstSelectionState === this._isCellInSelection(i, row));
}
// Similarly, if the cursor is in the ligature, don't join it.
isValidJoinRange &&= !isCursorRow || cursorX < range[0] || cursorX >= range[1];
if (!isValidJoinRange) {
skipJoinedCheckUntilX = range[1];
} else {