1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00
zsh/Completion/Core/_message
1999-12-07 16:25:53 +00:00

18 lines
424 B
Text

#autoload
local format
_tags messages || return 1
_style -s messages format format || _style -s descriptions format format
if [[ -n "$format" ]]; then
compfmt 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