mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Fix widening some columns in tabulated-list-widen-current-column
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-widen-current-column): Don't bug out on list-based columns (bug#53498).
This commit is contained in:
parent
44ffd6a825
commit
c40398e008
1 changed files with 4 additions and 1 deletions
|
|
@ -745,7 +745,10 @@ Interactively, N is the prefix numeric argument, and defaults to
|
||||||
(max (setq col-width
|
(max (setq col-width
|
||||||
(cadr (aref tabulated-list-format
|
(cadr (aref tabulated-list-format
|
||||||
col-nb)))
|
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
|
(or (plist-get (nthcdr 3 (aref tabulated-list-format
|
||||||
col-nb))
|
col-nb))
|
||||||
:pad-right)
|
:pad-right)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue