mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fixed issue where terminal would become unusable if NaN values are sent
to resize method.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user