branch: elpa/helm commit 6c25f5473d593a54cdf3a6d0cfec2b5120065017 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Fix require-match in completion-in-region --- helm-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm-mode.el b/helm-mode.el index 2e8730a671..884ece89ca 100644 --- a/helm-mode.el +++ b/helm-mode.el @@ -2763,7 +2763,9 @@ Can be used for `completion-in-region-function' by advicing it with an (crm (eq current-command 'crm-complete)) (str-command (helm-symbol-name current-command)) (buf-name (format "*helm-mode-%s*" str-command)) - (require-match minibuffer-completion-confirm) + ;; If we have a minibuffer use `minibuffer-completion-confirm' + ;; otherwise assume we use `completion-at-point' and use `t'. + (require-match (if crm minibuffer-completion-confirm t)) (metadata (completion-metadata input collection predicate)) ;; `completion-extra-properties' is let-bounded in `completion-at-point'. ;; `afun' is a closure to call against each string in `data'.