branch: externals/fontaine commit 3f89f1406f1e204b6241c6550e6150816144da30 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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)