From 6b2459317be4e472f3737146639f6df85182872f Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Thu, 3 Aug 2023 22:29:36 -0700 Subject: [PATCH] Null out following columns after grapheme cluster --- src/common/InputHandler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/InputHandler.ts b/src/common/InputHandler.ts index 5d9147aa..7be2f1aa 100644 --- a/src/common/InputHandler.ts +++ b/src/common/InputHandler.ts @@ -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; }