diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-11-05 00:27:47 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-11-05 00:27:47 +0100 |
commit | 4b41e33cbcf8027b53ecae4467dc9232becb0420 (patch) | |
tree | 61697eb6efad6cec81919f761d9238037c4c154b /Completion/Zsh/Type | |
parent | fe023d8bac1912e96a4d982ba84a0621fde616d2 (diff) | |
download | zsh-4b41e33cbcf8027b53ecae4467dc9232becb0420.tar.gz zsh-4b41e33cbcf8027b53ecae4467dc9232becb0420.tar.xz zsh-4b41e33cbcf8027b53ecae4467dc9232becb0420.zip |
39389: when printf -v is used with an array use separate elements each time the format is reused
Diffstat (limited to 'Completion/Zsh/Type')
-rw-r--r-- | Completion/Zsh/Type/_globquals | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Completion/Zsh/Type/_globquals b/Completion/Zsh/Type/_globquals index 6eef16877..a904bdf0d 100644 --- a/Completion/Zsh/Type/_globquals +++ b/Completion/Zsh/Type/_globquals @@ -121,8 +121,7 @@ while [[ -n $PREFIX ]]; do tmatch=( s m h d w M ) if zstyle -t ":completion:${curcontext}:time-specifiers" verbose; then zstyle -s ":completion:${curcontext}:time-specifiers" list-separator sep || sep=-- - print -v tdisp -f "%s ${sep//(#m)[%\\]/$MATCH$MATCH} %s\0" ${tmatch:^^tdisp} - tdisp=( ${(0)tdisp} ) + print -v tdisp -f "%s ${sep//(#m)[%\\]/$MATCH$MATCH} %s" ${tmatch:^^tdisp} fi alts+=( "time-specifiers:time specifier:compadd -E 0 -d tdisp -S '' -a tmatch" ) fi |