diff options
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Type/_pids | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_pids b/Completion/Unix/Type/_pids index 18ed4616e..ea5ed79ee 100644 --- a/Completion/Unix/Type/_pids +++ b/Completion/Unix/Type/_pids @@ -45,7 +45,8 @@ if [[ -n "$all" ]]; then case "$out" in menu) compstate[insert]=menu ;; - single) [[ $compstate[nmatches] -ne nm+1 ]] && compstate[insert]= ;; + single) [[ $compstate[nmatches] -ne nm+1 && $compstate[insert] != menu ]] && + compstate[insert]= ;; *) [[ ${#:-$PREFIX$SUFFIX} -gt ${#compstate[unambiguous]} ]] && compstate[insert]=menu ;; esac |