mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
build fix
This commit is contained in:
@@ -2,7 +2,7 @@ import { Frontend, SearchOptions } from './frontend'
|
|||||||
import { Terminal, ITheme } from 'xterm'
|
import { Terminal, ITheme } from 'xterm'
|
||||||
import { getCSSFontFamily } from '../utils'
|
import { getCSSFontFamily } from '../utils'
|
||||||
import { FitAddon } from 'xterm-addon-fit'
|
import { FitAddon } from 'xterm-addon-fit'
|
||||||
import { enableLigatures } from 'xterm-addon-ligatures'
|
import { LigaturesAddon } from 'xterm-addon-ligatures'
|
||||||
import { SearchAddon } from 'xterm-addon-search'
|
import { SearchAddon } from 'xterm-addon-search'
|
||||||
import { WebglAddon } from 'xterm-addon-webgl'
|
import { WebglAddon } from 'xterm-addon-webgl'
|
||||||
import './xterm.css'
|
import './xterm.css'
|
||||||
@@ -29,6 +29,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
private copyOnSelect = false
|
private copyOnSelect = false
|
||||||
private search = new SearchAddon()
|
private search = new SearchAddon()
|
||||||
private fitAddon = new FitAddon()
|
private fitAddon = new FitAddon()
|
||||||
|
private ligaturesAddon: LigaturesAddon
|
||||||
private opened = false
|
private opened = false
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
@@ -119,10 +120,6 @@ export class XTermFrontend extends Frontend {
|
|||||||
this.xterm.loadAddon(new WebglAddon())
|
this.xterm.loadAddon(new WebglAddon())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.configService.store.terminal.ligatures) {
|
|
||||||
enableLigatures(this.xterm)
|
|
||||||
}
|
|
||||||
|
|
||||||
this.ready.next(null)
|
this.ready.next(null)
|
||||||
this.ready.complete()
|
this.ready.complete()
|
||||||
|
|
||||||
@@ -225,8 +222,9 @@ export class XTermFrontend extends Frontend {
|
|||||||
this.configuredTheme = theme
|
this.configuredTheme = theme
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.opened && config.terminal.ligatures) {
|
if (this.opened && config.terminal.ligatures && !this.ligaturesAddon) {
|
||||||
enableLigatures(this.xterm)
|
this.ligaturesAddon = new LigaturesAddon()
|
||||||
|
this.xterm.loadAddon(this.ligaturesAddon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user