summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-08-16 07:15:09 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-08-16 07:15:09 +0200
commit891c75744b70874e0e5ae716e2ac5b80602cda5c (patch)
treee58b7160ecbd7bfe18e105d63829abf17858dea5 /helm-command.el
parent962a83a768d2047cd804c33f4bfae16b29900e42 (diff)
Allow matching only part of candidate in helm-comp-read (#1582).
* helm-mode.el (helm-comp-read): Do it. * helm-command.el (helm-M-x-read-extended-command): Use it.
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/helm-command.el b/helm-command.el
index 3eafc593..3b2fe051 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -240,6 +240,7 @@ than the default which is OBARRAY."
:help-message 'helm-M-x-help-message
:keymap helm-M-x-map
:must-match t
+ :match-part (lambda (c) (car (split-string c)))
:fuzzy helm-M-x-fuzzy-match
:nomark t
:candidates-in-buffer t