We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 394d7a2 + 5c9adee commit 07ba3dcCopy full SHA for 07ba3dc
1 file changed
addons/xterm-addon-fit/src/FitAddon.ts
@@ -33,7 +33,7 @@ export class FitAddon implements ITerminalAddon {
33
34
public fit(): void {
35
const dims = this.proposeDimensions();
36
- if (!dims || !this._terminal) {
+ if (!dims || !this._terminal || isNaN(dims.cols) || isNaN(dims.rows)) {
37
return;
38
}
39
0 commit comments