From 4eb356f6bef63bb87d3c57e76ee6776493308095 Mon Sep 17 00:00:00 2001 From: Thomas Zilz Date: Thu, 7 Sep 2017 17:13:15 +0200 Subject: [PATCH] Fix CSI Ps M to delete the correct line --- src/InputHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InputHandler.ts b/src/InputHandler.ts index abfdfa0e..3bc87d96 100644 --- a/src/InputHandler.ts +++ b/src/InputHandler.ts @@ -467,7 +467,7 @@ export class InputHandler implements IInputHandler { while (param--) { // test: echo -e '\e[44m\e[1M\e[0m' // blankLine(true) - xterm/linux behavior - this._terminal.buffer.lines.splice(row - 1, 1); + this._terminal.buffer.lines.splice(row, 1); this._terminal.buffer.lines.splice(j, 0, this._terminal.blankLine(true)); }