From f839a0da8baa212f6a25c22c4ff51df7c042c0ac Mon Sep 17 00:00:00 2001 From: meganrogge Date: Fri, 18 Feb 2022 17:50:12 -0600 Subject: [PATCH] use splice instead of filter --- src/common/buffer/Buffer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/buffer/Buffer.ts b/src/common/buffer/Buffer.ts index 1ba76ba1..266c16aa 100644 --- a/src/common/buffer/Buffer.ts +++ b/src/common/buffer/Buffer.ts @@ -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();