blob: b2730a33170fdcb068cc64a41fe843edd7dd3105 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#autoload
local format
_tags messages || return 1
_style -s messages format format || _style -s descriptions format format
if [[ -n "$format" ]]; then
if [[ $compstate[nmatches] -eq 0 ]]; then
compstate[list]='list force'
compstate[insert]=''
compadd -UX "${format//\\%d/$1}" -n ''
else
compadd -X "${format//\\%d/$1}" -n '' && compstate[list]='list force'
fi
fi
|