diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-04-24 17:03:56 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-04-24 17:03:56 +0200 |
commit | 65e5b29109e825350c38c69331a915d124b8c3c4 (patch) | |
tree | 4c6bc51ddd34370c43fda786460ade4d32aa120f /helm-mode.el | |
parent | 7fce44dc3da42dcf86bc0ddc747493ca7747fb66 (diff) |
Compute completing-read collection with empty string.
* helm-mode.el (helm-completing-read-with-cands-in-buffer):
This fix case-fold-search which is not understood by all-completions.
Diffstat (limited to 'helm-mode.el')
-rw-r--r-- | helm-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-mode.el b/helm-mode.el index 493160da..fddb3f37 100644 --- a/helm-mode.el +++ b/helm-mode.el @@ -691,7 +691,8 @@ It should be used when candidate list don't need to rebuild dynamically." ;; the calculation of collection. in this case it clash with ;; candidates-in-buffer that reuse precedent data (files) which is wrong. ;; So (re)calculate collection outside of main helm-session. - (let ((cands (all-completions (or init "") collection))) + (let* ((cands (helm-comp-read-get-candidates + collection test nil nil ""))) (helm-completing-read-default-1 prompt cands test require-match init hist default inherit-input-method name buffer t))) |