summaryrefslogtreecommitdiff
path: root/Completion/bashcompinit
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:18:04 +0200
committerAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:18:04 +0200
commit31bcc5c263aea983e967426e2b94269e7605dcd4 (patch)
tree7b48ad9d7799afe09b7d7d8adc980bd5db935bdf /Completion/bashcompinit
parent5086b5356abcef8849dc8a09902b7c55f01db3c0 (diff)
parentb09f4483416c54c1782824633dfabaf2ec0265b6 (diff)
downloadzsh-31bcc5c263aea983e967426e2b94269e7605dcd4.tar.gz
zsh-31bcc5c263aea983e967426e2b94269e7605dcd4.zip
Update upstream source from tag 'upstream/5.8.1.2-test'
Update to upstream version '5.8.1.2-test' with Debian dir b380d582bf51cd93149e4dea28fffa1ad85db4f5
Diffstat (limited to 'Completion/bashcompinit')
-rw-r--r--Completion/bashcompinit7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/bashcompinit b/Completion/bashcompinit
index 02290a16f..adb659ca1 100644
--- a/Completion/bashcompinit
+++ b/Completion/bashcompinit
@@ -10,7 +10,7 @@ _bash_complete() {
(( COMP_POINT = 1 + ${#${(j. .)words[1,CURRENT-1]}} + $#QIPREFIX + $#IPREFIX + $#PREFIX ))
(( COMP_CWORD = CURRENT - 1))
- COMP_WORDS=( $words )
+ COMP_WORDS=( "${words[@]}" )
BASH_VERSINFO=( 2 05b 0 1 release )
savejobstates=( ${(kv)jobstates} )
@@ -24,9 +24,10 @@ _bash_complete() {
if [[ ${argv[${argv[(I)filenames]:-0}-1]} = -o ]]; then
compset -P '*/' && matches=( ${matches##*/} )
compset -S '/*' && matches=( ${matches%%/*} )
- compadd -Q -f "${suf[@]}" -a matches && ret=0
+ compadd -f "${suf[@]}" -a matches && ret=0
else
- compadd -Q "${suf[@]}" -a matches && ret=0
+ compadd "${suf[@]}" - "${(@)${(Q@)matches}:#*\ }" && ret=0
+ compadd -S ' ' - ${${(M)${(Q)matches}:#*\ }% } && ret=0
fi
fi