diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Completion/Zsh/Type/_suffix_alias_files | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index b637cdfdd..43a805bc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2022-05-30 Bart Schaefer <schaefer@zsh.org> + + * Marlon Richert: 50307 (cf. PWS 50205): + Completion/Zsh/Type/_suffix_alias_files: suffix aliases should not + collide with directory names when completing + 2022-05-26 Peter Stephenson <p.stephenson@samsung.com> * 50287: configure.ac: Turn on use of getcwd by default. Leave diff --git a/Completion/Zsh/Type/_suffix_alias_files b/Completion/Zsh/Type/_suffix_alias_files index 1c2c8ebb5..b6fa4e7f5 100644 --- a/Completion/Zsh/Type/_suffix_alias_files +++ b/Completion/Zsh/Type/_suffix_alias_files @@ -16,6 +16,7 @@ else tmpa=(${(kq)saliases}) pat="*.(${(kj.|.)tmpa})" fi +[[ -o autocd ]] || pat+='(#q^/)' # _wanted is called for us by _command_names _path_files "$@" -g $pat |