Remove warnings for terminal.

This commit is contained in:
Vincent Zhang 2018-10-25 16:21:25 +08:00
parent ec92922a71
commit c3a3af60b4

View file

@ -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)))))