branch: master commit 8cc5c8ffe5427ca280cb74aecf2a9922b00f6170 Author: Ian Dunn <du...@gnu.org> Commit: Ian Dunn <du...@gnu.org>
Fixed bug in enwc-refresh-widths * enwc.el (enwc-refresh-widths): Check type of input argument. --- enwc.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/enwc.el b/enwc.el index bf424c7..e194494 100644 --- a/enwc.el +++ b/enwc.el @@ -497,11 +497,13 @@ ARGS is only for compatibility with the calling function." (mapcar (lambda (spec) (pcase-let* (((cl-struct enwc-column-spec detail display conv) spec) - (new-max (seq-max - (map-apply - (lambda (id nw) - (length (funcall conv (alist-get detail nw)))) - networks))) + (new-max (if (mapp networks) + (seq-max + (map-apply + (lambda (id nw) + (length (funcall conv (alist-get detail nw)))) + networks)) + 0)) (min-width (+ (length display) 2))) (setf (enwc-column-spec-width spec) (max new-max min-width))) spec)