mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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)) {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user