Prevent updating of invalid terminal row ranges

This commit is contained in:
Daniel Imms
2017-09-03 07:27:52 -07:00
parent fd4e9d8a1b
commit 5a4851630e
+2
View File
@@ -123,6 +123,8 @@ export class Renderer {
this._refreshAnimationFrame = null;
// Render
start = Math.max(start, 0);
end = Math.min(end, this._terminal.rows - 1);
this._renderLayers.forEach(l => l.onGridChanged(this._terminal, start, end));
this._terminal.emit('refresh', {start, end});
}