Skip to content

Commit

Permalink
Bind minibuffer-completion-table in the right places
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Nov 14, 2022
1 parent 2615aec commit 07f4de5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions helm-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,8 @@ that use `helm-comp-read'. See `helm-M-x' for example."
(helm-marked-candidates)
(identity candidate)))))))
(let* ((minibuffer-completion-predicate test)
(minibuffer-completion-table collection)
(minibuffer-completion-table
(or minibuffer-completion-table collection))
(helm-read-file-name-mode-line-string
(replace-regexp-in-string "helm-maybe-exit-minibuffer"
"helm-confirm-and-exit-minibuffer"
Expand Down Expand Up @@ -945,7 +946,8 @@ It should be used when candidate list doesn't need to be rebuilt dynamically."
((pred (stringp)) init)
;; INIT is a cons cell.
(`(,l . ,_ll) l))
it)))
it))
(minibuffer-completion-table collection))
(helm-comp-read
prompt collection
:test test
Expand Down Expand Up @@ -991,6 +993,7 @@ This handler uses dynamic matching which allows honouring `completion-styles'."
;; INIT is a cons cell.
(`(,l . ,_ll) l)))
(completion-flex-nospace t)
(minibuffer-completion-table collection)
(completion-styles
(helm--prepare-completion-styles 'nomode))
(metadata (or (completion-metadata (or input "") collection predicate)
Expand Down

0 comments on commit 07f4de5

Please sign in to comment.