branch: externals/pyim
commit cc3ccde93f0a2e19e7941757d0083be914a2a283
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
* pyim-common.el (pyim-zip): 优化性能。
---
pyim-common.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyim-common.el b/pyim-common.el
index c6d327b..dd29d30 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -87,6 +87,7 @@
(defun pyim-zip (lists)
"Zip LISTS and delete dups: ((a b c) (d e)) => (a d b e c)."
+ (setq lists (remove nil lists))
(if (< (length lists) 2)
(car lists)
(let* ((n (apply #'max (mapcar #'length lists)))