diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts b/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts index 916ac9d275f08a5ffcf0383ee3010d92c9d998f0..05aa63ac63c6f395dde87db6cb6aca5e009d7d8d 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts @@ -133,7 +133,7 @@ configurationRegistry.registerConfiguration({ 'terminal.integrated.lineHeight': { 'description': nls.localize('terminal.integrated.lineHeight', "Controls the line height of the terminal, this number is multipled by the terminal font size to get the actual line-height in pixels."), 'type': 'number', - 'default': 1.2 + 'default': 1 }, 'terminal.integrated.enableBold': { 'type': 'boolean', diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts index 8fb8326d00270298ad7124f3663793c4d5e5b627..1863c01d2e5ccb424af11f7f9b8a3cbaa55534ba 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts @@ -94,10 +94,7 @@ export class TerminalConfigHelper implements ITerminalConfigHelper { if (fontSize <= 0) { fontSize = EDITOR_FONT_DEFAULTS.fontSize; } - let lineHeight = terminalConfig.lineHeight ? Math.max(terminalConfig.lineHeight, 1) : DEFAULT_LINE_HEIGHT; - if (!lineHeight) { - lineHeight = DEFAULT_LINE_HEIGHT; - } + const lineHeight = terminalConfig.lineHeight ? Math.max(terminalConfig.lineHeight, 1) : DEFAULT_LINE_HEIGHT; return this._measureFont(fontFamily, fontSize, lineHeight); }