diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-06-18 00:15:11 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-06-18 00:15:11 +0200 |
commit | 2f67cd514fef304ac40d49e5bb9c40bcee31664a (patch) | |
tree | 36d281ae2af7dc2a5d00c8be3f3afeb9b40c2b77 /Completion/Zsh | |
parent | bce43df70d1b09d9480dca36e6dd2641facdb6f0 (diff) | |
download | zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.gz zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.xz zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.zip |
38707: strip suffix for glob qualifier completion
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Type/_globquals | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Type/_globquals b/Completion/Zsh/Type/_globquals index 2523eb333..ed9c008a1 100644 --- a/Completion/Zsh/Type/_globquals +++ b/Completion/Zsh/Type/_globquals @@ -125,7 +125,7 @@ while [[ -n $PREFIX ]]; do alts+=("senses:sense:compadd -E 0 -d sdisp -S '' - + '' -") fi specmap=( M months w weeks h hours m minutes s seconds '(|+|-|d)' days) - alts+=('digits:digit ('${${specmap[(K)$timespec]}:-invalid time specifier}'):_dates -f ${${timespec/[-+]/d}:-d} -S ""' ) + alts+=('digits:digit ('${${specmap[(K)${timespec:-d}]}:-invalid time specifier}'):_dates -f ${${timespec/[-+]/d}:-d} -S ""' ) _alternative $alts return fi |