Skip to content

Commit c5eaeed

Browse files
authored
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.
1 parent df635e7 commit c5eaeed

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

bash-completion.el

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,13 +1702,6 @@ using the current Emacs completion style."
17021702
(bash-completion--unparsed-stub comp)) "" str)))
17031703
(cond
17041704
((null action) (try-completion completion-string result predicate))
1705-
((and (eq action t) (equal "" completion-string) predicate)
1706-
(delq nil (mapcar
1707-
(lambda (elt)
1708-
(when (funcall predicate elt) elt))
1709-
result)))
1710-
((and (eq action t) (equal "" completion-string))
1711-
result)
17121705
((eq action t)
17131706
(all-completions completion-string result predicate))
17141707
(t (test-completion str result predicate)))))))))

0 commit comments

Comments
 (0)