diff --git a/src/isterm/pty.ts b/src/isterm/pty.ts index c712415..2f06239 100644 --- a/src/isterm/pty.ts +++ b/src/isterm/pty.ts @@ -298,7 +298,9 @@ export class ISTerm implements IPty { if (!sameAccents) { ansiLine.push(this._getAnsiAccents(cell)); } - ansiLine.push(chars == "" ? ansi.cursorForward() : chars); + const isWide = prevCell?.getWidth() == 2 && cell?.getWidth() == 0; + const cursorForward = isWide ? "" : ansi.cursorForward(); + ansiLine.push(chars == "" ? cursorForward : chars); prevCell = cell; } return ansiLine.join("");