mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
Update xtermFrontend.ts
This commit is contained in:
@@ -110,8 +110,8 @@ export class XTermFrontend extends Frontend {
|
|||||||
let cols = Math.floor(l / actualCellWidth)
|
let cols = Math.floor(l / actualCellWidth)
|
||||||
let rows = Math.floor(i / actualCellHeight)
|
let rows = Math.floor(i / actualCellHeight)
|
||||||
|
|
||||||
if(/[0-9]/gi.test(cols) && /[0-9]/gi.test(rows) ){
|
if (!isNaN(cols) && !isNaN(rows)) {
|
||||||
this.xterm.resize(cols, rows);
|
this.xterm.resize(cols, rows)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Reference in New Issue
Block a user