branch: externals/fontaine
commit 5b15c473c3d90ea896ab11e637f8f39e4018fc55
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make sure :line-spacing can also take a nil value
In the previous commit I forgot about this scenario...
---
fontaine.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/fontaine.el b/fontaine.el
index 84fa9a9bf6..a86e75a322 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -409,11 +409,12 @@ This is then used to restore the last value with the
function
(fontaine--get-face-spec preset face))
fontaine-faces)))
(apply 'custom-theme-set-faces 'fontaine faces)
- (when-let* ((spacing (fontaine--get-preset-property preset :line-spacing))
- (_ (or (numberp spacing)
- (and (>= emacs-major-version 31)
- (consp spacing)))))
- (setq-default line-spacing spacing))))
+ (let ((spacing (fontaine--get-preset-property preset :line-spacing)))
+ (when (or (numberp spacing)
+ (and (>= emacs-major-version 31)
+ (consp spacing))
+ (null spacing))
+ (setq-default line-spacing spacing)))))
(make-obsolete 'fontaine--font-display-hist nil "3.0.0")