mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
20 lines
390 B
Plaintext
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
|