about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-05-30 12:02:50 -0700
committerBart Schaefer <schaefer@zsh.org>2022-05-30 12:02:50 -0700
commit8756cc6add3d27d05e869fc7317e3043ab2be5b2 (patch)
tree170324f7595a4bcd2cf12bded992507bccd679d7
parente4557ef852d512eddbd70f9c59e4bfb9fc4527a9 (diff)
downloadzsh-8756cc6add3d27d05e869fc7317e3043ab2be5b2.tar.gz
zsh-8756cc6add3d27d05e869fc7317e3043ab2be5b2.tar.xz
zsh-8756cc6add3d27d05e869fc7317e3043ab2be5b2.zip
Marlon Richert: 50307 (cf. PWS 50205): suffix aliases should not collide with directory names when completing
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Zsh/Type/_suffix_alias_files1
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