[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/fontaine 3f89f1406f 1/2: Fix bug with nil history
From: |
ELPA Syncer |
Subject: |
[elpa] externals/fontaine 3f89f1406f 1/2: Fix bug with nil history |
Date: |
Tue, 10 May 2022 06:57:34 -0400 (EDT) |
branch: externals/fontaine
commit 3f89f1406f1e204b6241c6550e6150816144da30
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Fix bug with nil history
---
fontaine.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fontaine.el b/fontaine.el
index 8aeb497abb..f48ab0340e 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -558,7 +558,8 @@ Target FRAME, if provided as an optional argument."
(weight (intern (completing-read "Select weight for `default': "
fontaine--font-weights nil)))
(height (read-number "Height of `default' face (must be a natural
number): "
- (or (string-to-number (nth 0
fontaine--natnum-history)))
+ (and fontaine--natnum-history
+ (string-to-number (nth 0
fontaine--natnum-history)))
'fontaine--natnum-history)))
(if (natnump height)
(fontaine--set-face-attributes 'default family weight height frame)