32190: quote _path_files -W path when completing relative to ../

This commit is contained in:
Barton E. Schaefer 2013-12-28 00:38:04 -08:00
parent 9e4468d38d
commit 407cfc0f4f
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2013-12-28 Barton E. Schaefer <schaefer@zsh.org>
* 32190 (cf. Alexey Bezhan: 32189): Completion/Zsh/Command/_cd:
quote _path_files -W path in case of spaces or special characters
when completing relative to ../
* 32186: Completion/Base/Completer/_expand: fix bad backreference;
handle glob patterns that include backslashed quote characters

View file

@ -100,7 +100,7 @@ else
# already handled by _command_names (see _autocd)
[[ CURRENT -ne 1 || ( -z "$path[(r).]" && $PREFIX != */* ) ]] &&
alt=( "${cdpath+local-}directories:${cdpath+local }directory:_path_files $tmpWpath -/" "$alt[@]" )
alt=( "${cdpath+local-}directories:${cdpath+local }directory:_path_files ${(j: :)${(@q)tmpWpath}} -/" "$alt[@]" )
if [[ CURRENT -eq argstart && noopts -eq 0 && $PREFIX = -* ]] &&
zstyle -t ":completion:${curcontext}:options" complete-options; then