mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #1624 from princjef/first-line-render
Only render first line when requested
This commit is contained in:
@@ -24,8 +24,8 @@ export class RenderDebouncer implements IDisposable {
|
||||
|
||||
public refresh(rowStart: number, rowEnd: number): void {
|
||||
// Get the min/max row start/end for the arg values
|
||||
rowStart = rowStart || 0;
|
||||
rowEnd = rowEnd || this._terminal.rows - 1;
|
||||
rowStart = rowStart !== null && rowStart !== undefined ? rowStart : 0;
|
||||
rowEnd = rowEnd !== null && rowEnd !== undefined ? rowEnd : this._terminal.rows - 1;
|
||||
// Check whether the row start/end values have already been set
|
||||
const isRowStartSet = this._rowStart !== undefined && this._rowStart !== null;
|
||||
const isRowEndSet = this._rowEnd !== undefined && this._rowEnd !== null;
|
||||
|
||||
Reference in New Issue
Block a user