This commit is contained in:
Jörg Breitbart
2019-07-07 22:22:19 +02:00
parent ef58f1fef8
commit 46f89cd4ff
+2
View File
@@ -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
}
}