From 4b46a777d79f1cde300bcff83ce7ea200aaa3431 Mon Sep 17 00:00:00 2001 From: Martin Koppehel Date: Sun, 5 Nov 2017 10:31:35 +0100 Subject: [PATCH] Fix deleteChars not updating the view When deleting a character in a line and moving the cursor to another line afterwards, the deletion is not rendered. This commit adds the line where the character was deleted to the refresh range to enforce an update --- src/InputHandler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/InputHandler.ts b/src/InputHandler.ts index c953a250..10a31e34 100644 --- a/src/InputHandler.ts +++ b/src/InputHandler.ts @@ -497,6 +497,7 @@ export class InputHandler implements IInputHandler { this._terminal.buffer.lines.get(row).splice(this._terminal.buffer.x, 1); this._terminal.buffer.lines.get(row).push(ch); } + this._terminal.updateRange(this._terminal.buffer.y); } /**