From 385cb9b9f0757d0203656d9bea3e5ba0dc7916c3 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 3 Jan 2017 14:23:36 +0000 Subject: 40264: _man: Complete all sections after '-a'. Followup to 37634. --- Completion/Unix/Command/_man | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_man') diff --git a/Completion/Unix/Command/_man b/Completion/Unix/Command/_man index b2aaeaf7e..67810e1dc 100644 --- a/Completion/Unix/Command/_man +++ b/Completion/Unix/Command/_man @@ -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 -- cgit 1.4.1