summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-01-28 09:31:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-01-28 09:31:53 +0000
commitaf39a5ab1a4f0b154ac212fdeb86bad322b32056 (patch)
tree45a825b359c708c6acfec4f4c037a8beea2b6436 /Completion/Unix
parent7c43fb69bf81dd37c0743a761c6b43519ea9a0d0 (diff)
downloadzsh-af39a5ab1a4f0b154ac212fdeb86bad322b32056.tar.gz
zsh-af39a5ab1a4f0b154ac212fdeb86bad322b32056.tar.xz
zsh-af39a5ab1a4f0b154ac212fdeb86bad322b32056.zip
26463: Greg Klanderman: add zle-line-finish widget
26464: Greg Klanderman: fix insert-ids=single for menu completion
26465: Greg Klanderman: command keymap for execution
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_pids3
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