branch: elpa/helm
commit 2c6e1c39ac8f7502aaecf0869df9ba696825dc60
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Use helm-iter-circular in helm-run-multi-key-command
Avoid creating a new iterator each time the initial one is consumed.
---
helm-core.el | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/helm-core.el b/helm-core.el
index 90cbf9ba54..82ee28290d 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -111,11 +111,8 @@ DELAY seconds."
(unless (and (car iterator)
;; Reset iterator when another key is pressed.
(eq this-command real-last-command))
- (setcar iterator (helm-iter-list (funcall fn))))
+ (setcar iterator (helm-iter-circular (funcall fn))))
(setq next (helm-iter-next (car iterator)))
- (unless next
- (setcar iterator (helm-iter-list (funcall fn)))
- (setq next (helm-iter-next (car iterator))))
(and next (car iterator)
(call-interactively (nth (1- next) functions)))
(when delay (run-with-idle-timer