Merge pull request #3532 from jeffg2k/patch-1

Check to make sure cols & rows are INT
This commit is contained in:
Daniel Imms
2021-10-26 08:49:07 -07:00
committed by GitHub
+1 -1
View File
@@ -33,7 +33,7 @@ export class FitAddon implements ITerminalAddon {
public fit(): void {
const dims = this.proposeDimensions();
if (!dims || !this._terminal) {
if (!dims || !this._terminal || isNaN(dims.cols) || isNaN(dims.rows)) {
return;
}