branch: elpa/anzu
commit 9ab3cfa390ca4ec2a480db1936a55108b23f24a4
Merge: 51a39670af b61877bf18
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>
Merge pull request #3 from kiwanami/master
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)