Skip to content

Commit

Permalink
Add missing deleteCount argument to Array.splice calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
PerBothner committed Jan 1, 2019
1 parent 48c1d36 commit 8fbeadd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EscapeSequenceParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
};
Expand Down Expand Up @@ -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);
}
}
};
Expand Down

0 comments on commit 8fbeadd

Please sign in to comment.