Unbreak ERC's Ibuffer filter (Bug#44100)

* lisp/erc/erc-ibuffer.el (erc-modified): Don't use `length' on dotted
lists (and not even to test if there is more than one element, for
that matter).  Use `cdr' instead.
This commit is contained in:
Olivier Certner 2021-07-06 10:51:57 +02:00 committed by Amin Bandali
parent 61def1e392
commit 75ecce4323
No known key found for this signature in database
GPG key ID: 8B44A0CDC7B956F2

View file

@ -77,7 +77,7 @@
erc-track-mode)
(let ((entry (assq (current-buffer) erc-modified-channels-alist)))
(if entry
(if (> (length entry) 1)
(if (cdr entry)
(cond ((eq 'pal (nth 1 entry))
(string erc-ibuffer-pal-char))
((eq 'fool (nth 1 entry))