1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-16 12:21:18 +02:00
zsh/Completion/Core/_message
1999-12-10 14:47:55 +00:00

19 lines
485 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