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

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

[elpa] externals/ilist df91da4d46 17/24: ilist: try to fix a bug


From: ELPA Syncer
Subject: [elpa] externals/ilist df91da4d46 17/24: ilist: try to fix a bug
Date: Tue, 28 Dec 2021 16:58:14 -0500 (EST)

branch: externals/ilist
commit df91da4d4684c747e91147d25fac1d56c8a8a0ef
Author: JSDurand <mmemmew@gmail.com>
Commit: JSDurand <mmemmew@gmail.com>

    ilist: try to fix a bug
    
    * ilist.el (ilist-display): Prevent the column to be nil.
---
 ilist.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ilist.el b/ilist.el
index c910c1295d..615a59ee07 100644
--- a/ilist.el
+++ b/ilist.el
@@ -193,9 +193,11 @@ trailing spaces."
       (lambda (element)
         (mapcar
          (lambda (column)
-           (let* ((str (funcall
-                        (ilist-column-fun column)
-                        element))
+           (let* ((str (or
+                        (funcall
+                         (ilist-column-fun column)
+                         element)
+                        (string)))
                   (str-len (string-width str))
                   (max-len (ilist-column-max column))
                   (elide (ilist-column-elide column))



reply via email to

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