mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
use splice instead of filter
This commit is contained in:
@@ -590,8 +590,8 @@ 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);
|
||||
}
|
||||
this.markers = this.markers.filter(m => m.line !== y);
|
||||
} else {
|
||||
for (const marker of this.markers) {
|
||||
marker.dispose();
|
||||
|
||||
Reference in New Issue
Block a user