1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-07 21:31:17 +02:00
zsh/Completion/Core/_message
2000-02-03 17:22:40 +00:00

19 lines
487 B
Text

#autoload
local format
_tags messages || return 1
zstyle -s ":completion:${curcontext}:messages" format format ||
zstyle -s ":completion:${curcontext}:descriptions" format format
if [[ -n "$format" ]]; then
zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}"
if [[ $compstate[nmatches] -eq 0 ]]; then
compstate[list]='list force'
compstate[insert]=''
compadd -UX "${format}" -n ''
else
compadd -X "${format}" -n '' && compstate[list]='list force'
fi
fi