diff --git a/src/common/buffer/Buffer.ts b/src/common/buffer/Buffer.ts index 17831f39..1ba76ba1 100644 --- a/src/common/buffer/Buffer.ts +++ b/src/common/buffer/Buffer.ts @@ -591,10 +591,12 @@ export class Buffer implements IBuffer { for (const marker of this.markers.filter(m => m.line === y)) { marker.dispose(); } + this.markers = this.markers.filter(m => m.line !== y); } else { for (const marker of this.markers) { marker.dispose(); } + this.markers = []; } this._isClearing = false; }