diff --git a/src/InputHandler.ts b/src/InputHandler.ts index 13a3145b..bbf17b60 100644 --- a/src/InputHandler.ts +++ b/src/InputHandler.ts @@ -701,6 +701,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--; + } } /**