From 8756cc6add3d27d05e869fc7317e3043ab2be5b2 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 30 May 2022 12:02:50 -0700 Subject: Marlon Richert: 50307 (cf. PWS 50205): suffix aliases should not collide with directory names when completing --- ChangeLog | 6 ++++++ Completion/Zsh/Type/_suffix_alias_files | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b637cdfdd..43a805bc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2022-05-30 Bart Schaefer + + * 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 * 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 -- cgit 1.4.1