Skip to content

Commit 07ba3dc

Browse files
authored
Merge pull request #3532 from jeffg2k/patch-1
Check to make sure cols & rows are INT
2 parents 394d7a2 + 5c9adee commit 07ba3dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/xterm-addon-fit/src/FitAddon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class FitAddon implements ITerminalAddon {
3333

3434
public fit(): void {
3535
const dims = this.proposeDimensions();
36-
if (!dims || !this._terminal) {
36+
if (!dims || !this._terminal || isNaN(dims.cols) || isNaN(dims.rows)) {
3737
return;
3838
}
3939

0 commit comments

Comments
 (0)