Merge pull request #525 from LucianBuzzo/resize

Fix issue when resizing hidden terminals
This commit is contained in:
Paris Kasidiaris 2017-02-05 17:59:54 +02:00 committed by GitHub
commit 03e46fbdee

View File

@ -1715,6 +1715,10 @@ Terminal.prototype.error = function() {
* @param {number} y The number of rows to resize to.
*/
Terminal.prototype.resize = function(x, y) {
if (Number.isNaN(x) || Number.isNaN(y)) {
return;
}
var line
, el
, i