Skip to content

Commit f839a0d

Browse files
committed
use splice instead of filter
1 parent 1efdc2e commit f839a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/buffer/Buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ export class Buffer implements IBuffer {
590590
if (y) {
591591
for (const marker of this.markers.filter(m => m.line === y)) {
592592
marker.dispose();
593+
this.markers.splice(this.markers.indexOf(marker), 1);
593594
}
594-
this.markers = this.markers.filter(m => m.line !== y);
595595
} else {
596596
for (const marker of this.markers) {
597597
marker.dispose();

0 commit comments

Comments
 (0)