blob: ab1c6799290e1b91665eead51b3d813c7958d77f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#autoload
local format
format="${compconfig[message_format]:-$compconfig[description_format]}"
if [[ -n "$format" ]]; then
if [[ $compstate[nmatches] -eq 0 ]]; then
compstate[list]=list
compstate[force_list]=yes
compstate[insert]=''
compadd -UX "${format//\\%d/$1}" -n ''
else
compadd -X "${format//\\%d/$1}" -n '' && compstate[force_list]=yes
fi
fi
|