mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
Actually fix the issue
typeof NaN is number :/
This commit is contained in:
parent
e698d0d889
commit
bd08ccfc32
|
@ -200,7 +200,7 @@ export class TerminalProcess implements ITerminalChildProcess, IDisposable {
|
|||
if (this._isDisposed) {
|
||||
return;
|
||||
}
|
||||
if (typeof cols !== 'number' || typeof rows !== 'number') {
|
||||
if (typeof cols !== 'number' || typeof rows !== 'number' || isNaN(cols) || isNaN(rows)) {
|
||||
return;
|
||||
}
|
||||
// Ensure that cols and rows are always >= 1, this prevents a native
|
||||
|
|
Loading…
Reference in a new issue