1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 04:15:33 +01:00

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

Followup to 37634.
This commit is contained in:
Daniel Shahaf 2017-01-03 14:23:36 +00:00
parent 24337b3c60
commit 385cb9b9f0
2 changed files with 8 additions and 1 deletions

View file

@ -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>

View file

@ -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