Skip to content

Commit 5b44dea

Browse files
committed
get rid of markers once they've been disposed via clear
1 parent 816f62c commit 5b44dea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/buffer/Buffer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,12 @@ export class Buffer implements IBuffer {
591591
for (const marker of this.markers.filter(m => m.line === y)) {
592592
marker.dispose();
593593
}
594+
this.markers = this.markers.filter(m => m.line !== y);
594595
} else {
595596
for (const marker of this.markers) {
596597
marker.dispose();
597598
}
599+
this.markers = [];
598600
}
599601
this._isClearing = false;
600602
}

0 commit comments

Comments
 (0)