From 74c3a4a6f76e687534625e326e894e092568281b Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 20 Jan 2017 23:12:54 -0800 Subject: [PATCH] Fix CUD behavior Don't wrap cursor to column 0 after a CUD, fixes 1 test --- src/InputHandler.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/InputHandler.ts b/src/InputHandler.ts index 6cb0f08c..13a3145b 100644 --- a/src/InputHandler.ts +++ b/src/InputHandler.ts @@ -220,6 +220,9 @@ export class InputHandler implements IInputHandler { if (this._terminal.y >= this._terminal.rows) { this._terminal.y = this._terminal.rows - 1; } + if (this._terminal.x >= this._terminal.cols) { + this._terminal.x--; + } } /**