Skip to content

Commit

Permalink
Merge pull request #3532 from jeffg2k/patch-1
Browse files Browse the repository at this point in the history
Check to make sure cols & rows are INT
  • Loading branch information
Tyriar committed Oct 26, 2021
2 parents 394d7a2 + 5c9adee commit 07ba3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/xterm-addon-fit/src/FitAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 07ba3dc

Please sign in to comment.