Merge pull request #3658 from meganrogge/master
fix marker splice by decrementing index
This commit is contained in:
@@ -591,7 +591,7 @@ export class Buffer implements IBuffer {
|
|||||||
for (let i = 0; i < this.markers.length; i++) {
|
for (let i = 0; i < this.markers.length; i++) {
|
||||||
if (this.markers[i].line === y) {
|
if (this.markers[i].line === y) {
|
||||||
this.markers[i].dispose();
|
this.markers[i].dispose();
|
||||||
this.markers.splice(i, 1);
|
this.markers.splice(i--, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user