summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/tabulated-list.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index a242ac1899d..2defef81073 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -745,7 +745,10 @@ Interactively, N is the prefix numeric argument, and defaults to
(max (setq col-width
(cadr (aref tabulated-list-format
col-nb)))
- (string-width (aref entry col-nb)))
+ (let ((desc (aref entry col-nb)))
+ (string-width (if (stringp desc)
+ desc
+ (car desc)))))
(or (plist-get (nthcdr 3 (aref tabulated-list-format
col-nb))
:pad-right)