Merge pull request #2859 from 695137400/patch-1

Update xtermFrontend.ts
This commit is contained in:
Eugene 2020-08-12 21:02:25 +02:00 committed by GitHub
commit 7379f6cd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,9 @@ export class XTermFrontend extends Frontend {
let cols = Math.floor(l / actualCellWidth)
let rows = Math.floor(i / actualCellHeight)
this.xterm.resize(cols, rows)
if(/[0-9]/gi.test(cols) && /[0-9]/gi.test(rows) ){
this.xterm.resize(cols, rows);
}
}
} catch (e) {
// tends to throw when element wasn't shown yet