emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/anzu 9ab3cfa390 007/288: Merge pull request #3 from kiwana


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 9ab3cfa390 007/288: Merge pull request #3 from kiwanami/master
Date: Thu, 6 Jan 2022 03:58:34 -0500 (EST)

branch: elpa/anzu
commit 9ab3cfa390ca4ec2a480db1936a55108b23f24a4
Merge: 51a39670af b61877bf18
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]