about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-18 12:11:38 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-18 12:11:38 +0000
commiteb85a72ad95cfa0bf6c39b806407c34946c71a2d (patch)
tree90aa146c679dbaed13b823746b230b55e9c0b5e3 /Completion
parent42510013b1630c620caeb7894d3fa2b46862cf56 (diff)
downloadzsh-eb85a72ad95cfa0bf6c39b806407c34946c71a2d.tar.gz
zsh-eb85a72ad95cfa0bf6c39b806407c34946c71a2d.tar.xz
zsh-eb85a72ad95cfa0bf6c39b806407c34946c71a2d.zip
zsh-workers/8322
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_path_files7
1 files changed, 6 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 6e23f46aa..4bdde4d20 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -277,7 +277,12 @@ for prepath in "$prepaths[@]"; do
       # otherwise this would keep `_files' from completing all filenames
       # if none of the patterns match.
 
-      if [[ "$haspats" = no && -z "$tpre$tsuf" &&
+      if [[ -z "$tpre$tsuf" ]]; then
+        tmp1=( "$tmp2[@]" )
+	addsfx=(-S '')
+	remsfx=()
+	break;
+      elif [[ "$haspats" = no && -z "$tpre$tsuf" &&
 	"$pre" = */ && -z "$suf" ]]; then
 	PREFIX="${opre}${osuf}"
 	SUFFIX=""