Fixed issue where terminal would become unusable if NaN values are sent

to resize method.
This commit is contained in:
Lucian Buzzo
2017-02-05 12:45:55 +00:00
parent 23c9fca088
commit ee0d6b4533
+4
View File
@@ -1973,6 +1973,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