summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2019-11-14 14:18:11 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2019-11-14 14:18:11 +0100
commitaee75f2cfe80c5d075068a644380d6608b0a2156 (patch)
treebf7063fbcac62738d94ffddfa6b6ea75cbc28697
parent9ff2abce135b56106ede0beea27dae643726f397 (diff)
No need to use helm-aif here
* helm-lib.el (helm-dynamic-completion): Do it.
-rw-r--r--helm-lib.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-lib.el b/helm-lib.el
index 58b77f26..dd4ebf53 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -1374,8 +1374,8 @@ Example:
(sort-fn (completion-metadata-get
metadata 'display-sort-function))
all)
- (helm-aif (cdr last-data)
- (setcdr last-data nil))
+ (when (cdr last-data)
+ (setcdr last-data nil))
(setq all (copy-sequence comps))
(if sort-fn (funcall sort-fn all) all)))))
;; Ensure circular objects are removed.