summaryrefslogtreecommitdiff
path: root/helm-mode.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-06-08 07:52:58 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-06-08 07:52:58 +0200
commit9f8159c4c85156fb3dde3b3451221e9a4dce3c96 (patch)
tree699fdfa05d48aff82d261e5d20f3d2d968efc55a /helm-mode.el
parent3d2af8670cdedaa5206703671e9be063005f8861 (diff)
Set also test to nil when completion have been computed with default.
* helm-mode.el (helm-completing-read-default-1): Do it.
Diffstat (limited to 'helm-mode.el')
-rw-r--r--helm-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/helm-mode.el b/helm-mode.el
index f17ec0ba..d171836d 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -622,7 +622,8 @@ It should be used when candidate list don't need to rebuild dynamically."
(helm-comp-read-get-candidates collection test)))
;; Ensure `all-completions' will not be used
;; a second time to recompute COLLECTION [1].
- (setq alistp t)
+ (setq alistp t
+ test nil)
(setq default (car default)))
(helm-comp-read
prompt collection
@@ -631,7 +632,7 @@ It should be used when candidate list don't need to rebuild dynamically."
:reverse-history helm-mode-reverse-history
:input-history history
:must-match require-match
- :alistp alistp ; Ensure `all-completions' is used when non-nil [1].
+ :alistp alistp ; Ensure `all-completions' is not used when non-nil [1].
:name name
:requires-pattern (if (and (string= default "")
(or (eq require-match 'confirm)