about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Core/_path_files2
-rw-r--r--Doc/Zsh/compsys.yo3
2 files changed, 4 insertions, 1 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 ${=...}.
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 9dfaa2af9..5825d79a1 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1844,7 +1844,8 @@ filenames. The option `tt(-W) var(paths)' may be used to specify path
 prefixes that are to be prepended to the string from the line to
 generate the filenames but that should not be inserted in the line or
 shown in a completion listing. The var(paths) may be the name of an
-array parameter or a literal list of paths enclosed in parentheses.
+array parameter, a literal list of paths enclosed in parentheses or
+an absolute pathname.
 Additionally, the `tt(-F)'
 option from the tt(compadd) builtin is supported, giving direct control
 over which filenames should be ignored. If no such option is given,