ui/posframe: fix wrong-type-argument error when doom-font is unset

This commit is contained in:
Henrik Lissner 2018-03-16 02:31:05 -04:00
parent 9168dfd733
commit 9a247f4dc1
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -54,8 +54,10 @@
ivy-posframe-parameters `((min-width . 90)
(min-height . ,ivy-height)
(internal-border-width . 10)))
(unless ivy-posframe-font
(setq ivy-posframe-font (font-spec :family (font-get doom-font :family) :size 18))))
(when (and (not ivy-posframe-font) doom-font)
(setq ivy-posframe-font
(font-spec :family (font-get doom-font :family)
:size 18))))
;; TODO helm-posframe?