From ef0312473eccc47326828731d9eae36dbafcf035 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Thu, 24 Feb 2022 12:07:54 -0600 Subject: [PATCH] re-add i-- so that markers on the same line get disposed of --- 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 2841efd8..7596fef3 100644 --- a/src/common/buffer/Buffer.ts +++ b/src/common/buffer/Buffer.ts @@ -591,7 +591,7 @@ export class Buffer implements IBuffer { for (let i = 0; i < this.markers.length; i++) { if (this.markers[i].line === y) { this.markers[i].dispose(); - this.markers.splice(i, 1); + this.markers.splice(i--, 1); } } } else {