nil check for frame

This commit is contained in:
Amos Bird 2017-11-29 20:39:11 +08:00 committed by GitHub
parent 81e9bc6b0c
commit 86dd6172a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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