get rid of markers once they've been disposed via clear
This commit is contained in:
@@ -591,10 +591,12 @@ export class Buffer implements IBuffer {
|
|||||||
for (const marker of this.markers.filter(m => m.line === y)) {
|
for (const marker of this.markers.filter(m => m.line === y)) {
|
||||||
marker.dispose();
|
marker.dispose();
|
||||||
}
|
}
|
||||||
|
this.markers = this.markers.filter(m => m.line !== y);
|
||||||
} else {
|
} else {
|
||||||
for (const marker of this.markers) {
|
for (const marker of this.markers) {
|
||||||
marker.dispose();
|
marker.dispose();
|
||||||
}
|
}
|
||||||
|
this.markers = [];
|
||||||
}
|
}
|
||||||
this._isClearing = false;
|
this._isClearing = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user