diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-11-23 07:39:16 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-11-27 15:12:00 +0000 |
commit | eccb7471b577d55f0b410088fc1125016476b332 (patch) | |
tree | d7b51d38c13ac1436fb0edf723cb3391e489df27 | |
parent | 53e6b12bdfdc6b835192458bbb98b81b77599e75 (diff) | |
download | zsh-eccb7471b577d55f0b410088fc1125016476b332.tar.gz zsh-eccb7471b577d55f0b410088fc1125016476b332.tar.xz zsh-eccb7471b577d55f0b410088fc1125016476b332.zip |
39757 plus test: Fix completion under parenthetical directory names, broken in 39412
-rw-r--r-- | Completion/Unix/Type/_path_files | 2 | ||||
-rw-r--r-- | Test/Y01completion.ztst | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 0d36b5487..32942d7a7 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -594,7 +594,7 @@ for prepath in "$prepaths[@]"; do # There are more components, so skip over the next components and make a # slash be added. - tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} ) + #tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} ) tmp2="${(M)tpre##${~skips}}" if [[ -n "$tmp2" ]]; then skipped="/$tmp2" diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index 7d8d70d8e..113a45076 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -80,12 +80,15 @@ F:regression test workers/31611 { mkdir 'A(B)' 'A(B)/C' + comptest $'cd "A(B)\t\t' comptesteval 'cd "A(B)/C"' comptest $'cd ../\t' } always { rmdir 'A(B)/C' 'A(B)' } 0:directory name is not a glob qualifier +>line: {cd "A(B)/}{} +>line: {cd "A(B)/C/}{} >line: {cd ../C/}{} comptesteval "_tst() { compadd -U -s : -S / -I . word; compstate[to_end]= }" |