1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 14:04:03 +01:00
zsh/Completion/Core/_message

20 lines
390 B
Plaintext
Raw Normal View History

1999-08-19 13:18:10 +02:00
#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