Add missing deleteCount argument to Array.splice calls.

This commit is contained in:
Per Bothner
2019-01-01 09:45:23 -08:00
parent 48c1d36d77
commit 8fbeadd5f9
+2 -2
View File
@@ -322,7 +322,7 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
dispose: () => {
const handlerIndex = handlerList.indexOf(callback);
if (handlerIndex !== -1) {
handlerList.splice(handlerIndex);
handlerList.splice(handlerIndex, 1);
}
}
};
@@ -357,7 +357,7 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
dispose: () => {
const handlerIndex = handlerList.indexOf(callback);
if (handlerIndex !== -1) {
handlerList.splice(handlerIndex);
handlerList.splice(handlerIndex, 1);
}
}
};