From 46f89cd4ffaf9b01155f9ca699451c2252b9dd05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Breitbart?= Date: Sun, 7 Jul 2019 22:22:19 +0200 Subject: [PATCH] fix NPE --- src/Terminal.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Terminal.ts b/src/Terminal.ts index ccec42e8..ccbca340 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -1846,6 +1846,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp * ESC M Reverse Index (RI is 0x8d). * * Move the cursor up one row, inserting a new blank line if necessary. + * FIXME: This method is seriously broken. */ public reverseIndex(): void { if (this.buffer.y === this.buffer.scrollTop) { @@ -1859,6 +1860,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp this.updateRange(this.buffer.scrollBottom); } else { this.buffer.y--; + (this._inputHandler as any)._restrictCursor(); // quickfix to not run out of bounds } }