From c3a3af60b43025a8faba4d30232a5af305a22f28 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 25 Oct 2018 16:21:25 +0800 Subject: [PATCH] Remove warnings for terminal. --- doom-modeline.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 8114c30..0948a8a 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -929,7 +929,8 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions." ;; TODO Include other information (cond ((eq major-mode 'image-mode) (cl-destructuring-bind (width . height) - (image-size (image-get-display-property) :pixels) + (when (fboundp 'image-size) + (image-size (image-get-display-property) :pixels)) (format " %dx%d " width height)))))