1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01: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