branch: elpa/bash-completion
commit c5eaeed156ab906190c662d491269230967104b1
Author: Daniel Mendler <[email protected]>
Commit: GitHub <[email protected]>

    Always ensure that a copy of the candidate list is returned (#48)
    
    The caller of the completion table is allowed to mutate the list in place.
---
 bash-completion.el | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/bash-completion.el b/bash-completion.el
index 47b729c6d1..554ef56c78 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1702,13 +1702,6 @@ using the current Emacs completion style."
                                               (bash-completion--unparsed-stub 
comp)) "" str)))
             (cond
              ((null action) (try-completion completion-string result 
predicate))
-             ((and (eq action t) (equal "" completion-string) predicate)
-              (delq nil (mapcar
-                         (lambda (elt)
-                           (when (funcall predicate elt) elt))
-                         result)))
-             ((and (eq action t) (equal "" completion-string))
-              result)
              ((eq action t)
               (all-completions completion-string result predicate))
              (t (test-completion str result predicate)))))))))

Reply via email to