branch: externals/ilist
commit df91da4d4684c747e91147d25fac1d56c8a8a0ef
Author: JSDurand <[email protected]>
Commit: JSDurand <[email protected]>
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))