mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +02:00
17 lines
407 B
Text
17 lines
407 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 ''
|
|
compstate[force_list]=yes
|
|
else
|
|
compadd -X "${format//\\%d/$1}" -n '' && compstate[force_list]=yes
|
|
fi
|
|
fi
|