summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-04-17 20:12:52 +0200
committerThierry Volpiatto <thievol@posteo.net>2021-04-17 20:12:52 +0200
commitdd47140b0dd3ff2ad2a4d6bc15d922789553048e (patch)
treec77a7169406e9113db15b8bbaebea561244a85fc /helm-command.el
parent85d87adfe42ba27460e691fca1fcaf6a1168f05b (diff)
Fix helm-M-x history calling predicate on a string instead of a symbol
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/helm-command.el b/helm-command.el
index cdb5ae90..b7b6137f 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -246,7 +246,11 @@ default to `extended-command-history'."
(lambda (str) (funcall pred (intern-soft str)))
nil 'nosort t)
(lambda () (helm-comp-read-get-candidates
- (or history extended-command-history) pred)))
+ ;; History should be quoted to
+ ;; force `helm-comp-read-get-candidates'
+ ;; to use predicate against
+ ;; symbol and not string.
+ (or history 'extended-command-history) pred)))
:fuzzy-match (null helm-M-x-use-completion-styles))
,(helm-make-source "Emacs Commands" 'helm-M-x-class
:match-dynamic helm-M-x-use-completion-styles