提交 993aea83 编写于 作者: D Daniel Imms

Fix default terminal line height

上级 0d022d59
......@@ -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',
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册