1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-11 07:07:32 +03:00

xterm 3.14 fixes

This commit is contained in:
Eugene Pankov 2019-05-31 18:17:28 +02:00
parent cc6443bb6c
commit 2b2453a397

View File

@ -144,9 +144,13 @@ export class XTermFrontend extends Frontend {
let config = this.configService.store
setImmediate(() => {
if (this.xterm.cols && this.xterm.rows) {
if (this.xterm.cols && this.xterm.rows && this.xtermCore.charMeasure) {
if (this.xtermCore.charMeasure) {
this.xtermCore.charMeasure.measure(this.xtermCore.options)
}
if (this.xtermCore.renderer) {
this.xtermCore.renderer._updateDimensions()
}
this.resizeHandler()
}
})
@ -179,7 +183,7 @@ export class XTermFrontend extends Frontend {
theme[colorNames[i]] = config.terminal.colorScheme.colors[i]
}
if (!deepEqual(this.configuredTheme, theme)) {
if (this.xtermCore._colorManager && !deepEqual(this.configuredTheme, theme)) {
this.xterm.setOption('theme', theme)
this.configuredTheme = theme
}