[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8cc5c8f 08/13: Fixed bug in enwc-refresh-widths
From: |
Ian Dunn |
Subject: |
[elpa] master 8cc5c8f 08/13: Fixed bug in enwc-refresh-widths |
Date: |
Sat, 15 Apr 2017 16:02:44 -0400 (EDT) |
branch: master
commit 8cc5c8ffe5427ca280cb74aecf2a9922b00f6170
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
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)
- [elpa] master updated (c30e4e1 -> 2dad73c), Ian Dunn, 2017/04/15
- [elpa] master ed920db 02/13: Inform user if enwc-setup has already been called, Ian Dunn, 2017/04/15
- [elpa] master b9869fc 04/13: Demoted setup error to message, Ian Dunn, 2017/04/15
- [elpa] master a61d78e 03/13: Ask the user about saving network interfaces during `enwc-setup', Ian Dunn, 2017/04/15
- [elpa] master bf628ce 05/13: Remove sort column when switching between wired and wireless, Ian Dunn, 2017/04/15
- [elpa] master 0ebaf4e 09/13: Restrict enwc-auto-scan to status variable, Ian Dunn, 2017/04/15
- [elpa] master 17d530d 10/13: Add type for enwc-enable-auto-scan-on-startup, Ian Dunn, 2017/04/15
- [elpa] master 886420d 06/13: Split enwc-setup contents into separate functions, Ian Dunn, 2017/04/15
- [elpa] master 8cc5c8f 08/13: Fixed bug in enwc-refresh-widths,
Ian Dunn <=
- [elpa] master 9893d7f 12/13: Updated version to 2.0, Ian Dunn, 2017/04/15
- [elpa] master b7529b1 01/13: Fixed wired connection and interface., Ian Dunn, 2017/04/15
- [elpa] master 60d9d90 07/13: Added tests for interface selection, Ian Dunn, 2017/04/15
- [elpa] master 7f15c06 11/13: Various fixes and improvements, Ian Dunn, 2017/04/15
- [elpa] master 2dad73c 13/13: Merge commit '9893d7f17a2ee7f83587c305c256bd1300995125', Ian Dunn, 2017/04/15