mirror of
https://github.com/Eugeny/tabby.git
synced 2025-04-12 16:10:26 +08:00
Merge pull request #2859 from 695137400/patch-1
Update xtermFrontend.ts
This commit is contained in:
commit
7379f6cd59
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user