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