Ignore soft hyphen

Fixes #4961
This commit is contained in:
Daniel Imms
2025-12-27 14:51:07 -08:00
parent 7a4c9cadff
commit 28b62a5e0b
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -619,6 +619,11 @@ describe('InputHandler', () => {
await inputHandler.parseP('¥¥¥');
assert.deepEqual(getLines(bufferService, 2), ['¥¥', '¥']);
});
it('should strip soft hyphens (U+00AD)', async () => {
await inputHandler.parseP('Soft\xadhy\xadphen');
assert.strictEqual(bufferService.buffer.translateBufferLineToString(0, true), 'Softhyphen');
assert.strictEqual(bufferService.buffer.x, 10);
});
});
describe('alt screen', () => {