about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-06 00:07:32 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-06 00:07:32 +0000
commite4d9d1030639440d8b084991a3c4c281757e3b92 (patch)
tree7786bf0751c5d8896e37cc2dac77b0c1c9866f5d /Completion
parent0e3bceebc2022abf4e092a3e4c7e2768af27c34e (diff)
downloadzsh-e4d9d1030639440d8b084991a3c4c281757e3b92.tar.gz
zsh-e4d9d1030639440d8b084991a3c4c281757e3b92.tar.xz
zsh-e4d9d1030639440d8b084991a3c4c281757e3b92.zip
zsh-workers/9225
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_path_files2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 415a55acb..4445ed3b4 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -43,6 +43,8 @@ while getopts "P:S:qr:R:W:F:J:V:X:f/g:M:12n" opt; do
   W)     tmp1="$OPTARG"
          if [[ "$tmp1[1]" = '(' ]]; then
            prepaths=( ${^=tmp1[2,-2]%/}/ )
+	 elif [[ "$tmp1[1]" = '/' ]]; then
+           prepaths=( "$tmp1/" )
          else
 	   # In this case the variable should be an array, so
 	   # don't use an extra ${=...}.