branch: elpa/anzu
commit b61877bf18a19a9ab256daedb7df2077428021f8
Author: SAKURAI Masashi <[email protected]>
Commit: SAKURAI Masashi <[email protected]>

    fixed an error at  when the variable  has a string value, not a list.
---
 anzu.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/anzu.el b/anzu.el
index e57bf9788a..33ef3039a3 100644
--- a/anzu.el
+++ b/anzu.el
@@ -88,7 +88,8 @@ First `%d' is current position, second `%d' is total number 
of matched"
        (force-mode-line-update)))))
 
 (defsubst anzu--mode-line-not-set-p ()
-  (equal (car mode-line-format) '(:eval (anzu--update-mode-line))))
+  (and (listp mode-line-format)
+       (equal (car mode-line-format) '(:eval (anzu--update-mode-line)))))
 
 (defun anzu--cons-mode-line ()
   (unless (anzu--mode-line-not-set-p)

Reply via email to