aboutsummaryrefslogtreecommitdiffstats
path: root/mode-icons.el
diff options
context:
space:
mode:
authorGravatar Matthew L. Fidler2016-02-09 10:11:24 -0600
committerGravatar Matthew L. Fidler2016-02-09 10:11:24 -0600
commit72736b5a92b0b821db2255ee616011d79736e1d3 (patch)
tree5b36e5929fea57d0220eec0b794b238f6c8f2bc0 /mode-icons.el
parentc7a0a4320dc2a0e9c91eb02a03e2bdd6a71d6f0b (diff)
downloadmode-icons-72736b5a92b0b821db2255ee616011d79736e1d3.tar.gz
mode-icons-72736b5a92b0b821db2255ee616011d79736e1d3.zip
Make sure text is supported
Diffstat (limited to 'mode-icons.el')
-rw-r--r--mode-icons.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/mode-icons.el b/mode-icons.el
index 823f7f2..0758717 100644
--- a/mode-icons.el
+++ b/mode-icons.el
@@ -139,6 +139,7 @@ the icon."
(defun mode-icons-supported-p (icon-spec)
"Determine if ICON-SPEC is suppored on your system."
(or
+ (and (or (eq (nth 2 icon-spec) nil) (eq (nth 1 icon-spec) nil)) t)
(and (eq (nth 2 icon-spec) 'octicons) mode-icons-octicons-font (not (eq system-type 'windows-nt))
(stringp (nth 1 icon-spec)))
(and (eq (nth 2 icon-spec) 'jpg) (image-type-available-p 'jpeg))