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:
parent
cc6443bb6c
commit
2b2453a397
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user