Merge pull request #275 from amosbird/patch-4

nil check for frame
This commit is contained in:
Henrik Lissner
2017-12-03 19:59:56 -05:00
committed by GitHub

View File

@ -7,7 +7,7 @@
(defun +unicode|init-fonts (&optional frame)
"Initialize `unicode-fonts', if in a GUI session."
(when (display-graphic-p frame)
(when (and frame (display-graphic-p frame))
(with-selected-frame frame
(require 'unicode-fonts)
;; NOTE will impact startup time on first run