Skip to content

Commit

Permalink
Fix a bug in glob completion
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Nov 1, 2021
1 parent de71c33 commit 06e783e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/.autocomplete.compinit
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ EOF
.autocomplete.patch _expand
_expand() {
if _autocomplete.is_glob; then
[[ $words[CURRENT] == *[^*] && $WIDGET != _complete_help ]] &&
local +h ISUFFIX="*"
compstate[pattern_insert]= # Make compstate[insert]=unambiguous work.
compstate[pattern_match]=\* # Smartly append * to the pattern.

.autocomplete._expand "$@"
return
Expand Down

0 comments on commit 06e783e

Please sign in to comment.