diff --git a/src/common/InputHandler.ts b/src/common/InputHandler.ts index 0df992c8..6198aa37 100644 --- a/src/common/InputHandler.ts +++ b/src/common/InputHandler.ts @@ -1218,7 +1218,6 @@ export class InputHandler extends Disposable implements IInputHandler { this._activeBuffer.getNullCell(this._eraseAttrData()), this._eraseAttrData() ); - this._bufferService.buffer.clearMarkers(y); if (clearWrap) { line.isWrapped = false; } diff --git a/src/common/buffer/Buffer.ts b/src/common/buffer/Buffer.ts index 17831f39..266c16aa 100644 --- a/src/common/buffer/Buffer.ts +++ b/src/common/buffer/Buffer.ts @@ -590,11 +590,13 @@ export class Buffer implements IBuffer { if (y) { for (const marker of this.markers.filter(m => m.line === y)) { marker.dispose(); + this.markers.splice(this.markers.indexOf(marker), 1); } } else { for (const marker of this.markers) { marker.dispose(); } + this.markers = []; } this._isClearing = false; }