branch: elpa/helm
commit 20cfe250d20be4cdaa56ae73c30f55c5a8629e22
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Remove nil candidates from kmacro-ring
---
helm-ring.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/helm-ring.el b/helm-ring.el
index 569a6f7f62..67d5cba1cd 100644
--- a/helm-ring.el
+++ b/helm-ring.el
@@ -528,10 +528,11 @@ See (info \"(emacs) Keyboard Macros\") for detailed
infos."
(helm :sources
(helm-build-sync-source "Kmacro"
:candidates (lambda ()
- (helm-fast-remove-dups
- (cons (kmacro-ring-head)
- kmacro-ring)
- :test 'equal))
+ (delq nil
+ (helm-fast-remove-dups
+ (cons (kmacro-ring-head)
+ kmacro-ring)
+ :test 'equal)))
:multiline t
:candidate-transformer
(lambda (candidates)