1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-12 23:11:14 +02:00
zsh/Completion/Core/_message
1999-08-20 07:49:07 +00:00

17 lines
376 B
Text

#autoload
local format
format="$compconfig[message_format]"
[[ -z "$format" ]] && 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
fi