Fix iedit subst.

This commit is contained in:
Vincent Zhang 2018-08-13 23:04:36 +08:00
parent 71c5047d3b
commit 051528a52a

View file

@ -845,7 +845,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
(defsubst doom-modeline--iedit ()
"Show the number of iedit regions matches + what match you're on."
(when (and (featurep 'iedit) iedit-mode iedit-occurrences-overlays)
(when (and (bound-and-true-p iedit-mode) (bound-and-true-p iedit-occurrences-overlays))
(propertize
(let ((this-oc (or (let ((inhibit-message t))
(iedit-find-current-occurrence-overlay))