Fix reverseIndex to work with scroll regions and 0 scrollback

This commit is contained in:
Daniel Imms
2017-08-25 12:11:20 -07:00
parent 9a8b7a4d8d
commit a2161532db
3 changed files with 43 additions and 12 deletions
+4
View File
@@ -46,6 +46,10 @@ export class Buffer implements IBuffer {
return this._lines;
}
public get hasScrollback(): boolean {
return this._hasScrollback && this.lines.maxLength > this._terminal.rows;
}
/**
* Gets the correct buffer length based on the rows provided, the terminal's
* scrollback and whether this buffer is flagged to have scrollback or not.