提交 07d663dc 编写于 作者: D Daniel Imms

Don't respect editor.fontSize: 0

toFloat only falls back to the default when the value is NaN, so an
explicit check for 0 is required.

Fixes #11715
上级 85a23377
......@@ -478,6 +478,9 @@ export abstract class CommonEditorConfiguration extends Disposable implements ed
let fontSize = toFloat(opts.fontSize, DefaultConfig.editor.fontSize);
fontSize = Math.max(0, fontSize);
fontSize = Math.min(100, fontSize);
if (fontSize === 0) {
fontSize = DefaultConfig.editor.fontSize;
}
let lineHeight = toInteger(opts.lineHeight, 0, 150);
if (lineHeight === 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册