From f3d3e10afb000db021781980bca734b896d2096f Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 27 Jan 2023 23:19:35 +0100 Subject: [PATCH] fixed #7775 - line height changing unexpectedly when zooming in/out --- tabby-terminal/src/frontends/xtermFrontend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-terminal/src/frontends/xtermFrontend.ts b/tabby-terminal/src/frontends/xtermFrontend.ts index 3a0ed82d..16011f99 100644 --- a/tabby-terminal/src/frontends/xtermFrontend.ts +++ b/tabby-terminal/src/frontends/xtermFrontend.ts @@ -482,7 +482,7 @@ export class XTermFrontend extends Frontend { const scale = Math.pow(1.1, this.zoom) this.xterm.options.fontSize = this.configuredFontSize * scale // eslint-disable-next-line @typescript-eslint/restrict-plus-operands - this.xterm.options.lineHeight = Math.max(1, (this.configuredFontSize + this.configuredLinePadding * 2) / this.configuredFontSize * scale) + this.xterm.options.lineHeight = Math.max(1, (this.configuredFontSize + this.configuredLinePadding * 2) / this.configuredFontSize) this.resizeHandler() }