Kaynağa Gözat

Update xtermFrontend.ts

Eugene 6 yıl önce
ebeveyn
işleme
d5babde1fa

+ 1 - 1
terminus-terminal/src/frontends/xtermFrontend.ts

@@ -252,7 +252,7 @@ export class XTermFrontend extends Frontend {
         const scale = Math.pow(1.1, this.zoom)
         const scale = Math.pow(1.1, this.zoom)
         this.xterm.setOption('fontSize', this.configuredFontSize * scale)
         this.xterm.setOption('fontSize', this.configuredFontSize * scale)
         // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
         // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
-        this.xterm.setOption('lineHeight', (this.configuredFontSize + this.configuredLinePadding * 2) / this.configuredFontSize * scale)
+        this.xterm.setOption('lineHeight', (this.configuredFontSize + this.configuredLinePadding * 2) / this.configuredFontSize)
         this.resizeHandler()
         this.resizeHandler()
     }
     }