summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-10-08 08:05:08 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-10-08 08:05:08 +0200
commitf4c2eba0378c064bfe7d1cdd344b9ed54735638a (patch)
tree71789142bb333cbcd2fa8eac87c5113acff69c36 /helm-command.el
parentdc3e531ffc69cb4fbc12ca3f7218bab3b4762efc (diff)
Reset prefix arg in M-x when moving in helm-buffer.
* helm-command.el (helm-M-x-read-extended-command): Bind helm-move-selection-after-hook.
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helm-command.el b/helm-command.el
index 6e88b051..77440449 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -192,7 +192,10 @@ than the default which is OBARRAY."
(helm-describe-function candidate)
(setq in-help t))
(setq help-cand candidate))))
- (tm (run-at-time 1 0.1 'helm-M-x--notify-prefix-arg)))
+ (tm (run-at-time 1 0.1 'helm-M-x--notify-prefix-arg))
+ (helm-move-selection-after-hook
+ (cons (lambda () (setq current-prefix-arg nil))
+ helm-move-selection-after-hook)))
(setq extended-command-history
(cl-loop for c in extended-command-history
when (and c (commandp (intern c)))