40264: _man: Complete all sections after '-a'.

Followup to 37634.
schaefer/badarrays
Daniel Shahaf 7 years ago
parent 24337b3c60
commit 385cb9b9f0

@ -1,5 +1,8 @@
2017-01-05 Daniel Shahaf <d.s@daniel.shahaf.name>
* 40264: Completion/Unix/Command/_man: Complete all sections
after '-a'.
* users/22320: Etc/BUGS: Add 40240, label 40106.
2017-01-05 Oliver Kiddle <opk@zsh.org>

@ -51,7 +51,11 @@ _man() {
sect="${sect//:/|}"
sect="${sect//,/|}"
elif (( CURRENT > 2 )); then
sect=$words[2]
case $words[2] in
(-a) sect='*';;
(-*) ;;
(*) sect=$words[2];;
esac
fi
if [[ $sect = (<->*|1M|l|n) || $sect = *\|* ]]; then

Loading…
Cancel
Save