Null out following columns after grapheme cluster

This commit is contained in:
Per Bothner
2023-08-03 22:29:36 -07:00
parent 08a0914a78
commit 6b2459317b
+3 -1
View File
@@ -600,7 +600,9 @@ export class InputHandler extends Disposable implements IInputHandler {
// since an empty cell is only set by fullwidth chars
bufferRow.addCodepointToCell(this._activeBuffer.x - offset,
code, chWidth);
this._activeBuffer.x += chWidth - oldWidth;
for (let delta = chWidth - oldWidth; --delta >= 0; ) {
bufferRow.setCellFromCodePoint(this._activeBuffer.x++, 0, 0, curAttr.fg, curAttr.bg, curAttr.extended);
}
continue;
}