Skip to content

Commit

Permalink
fixed #7775 - line height changing unexpectedly when zooming in/out
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jan 27, 2023
1 parent 7491c31 commit f3d3e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabby-terminal/src/frontends/xtermFrontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit f3d3e10

Please sign in to comment.