1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00
zsh/Completion/Core/_message
1999-08-19 11:18:10 +00:00

20 lines
390 B
Plaintext

#autoload
local format
format="$compconfig[message_format]"
[[ -z "$format" ]] && "$compconfig[description_format]"
if [[ -n "$format" ]]; then
if [[ $compstate[nmatches] -eq 0 ]]; then
compstate[list]=list
compstate[insert]=''
compadd -UX "${format//\\%d/$1}" -n ''
else
compadd -X "${format//\\%d/$1}" -n ''
fi
compstate[force_list]=yes
else
compadd -n ''
fi