summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_pgrep
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_pgrep')
-rw-r--r--Completion/Unix/Command/_pgrep4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 95d0ea284..3af55a379 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -1,6 +1,6 @@
#compdef pgrep pkill
-local context state line ret=1 expl
+local curcontext="$curcontext" state line ret=1 expl
typeset -A opt_args
typeset -a arguments
@@ -66,7 +66,7 @@ esac
arguments=( ${(M)arguments:#(|\*)(|\(*\))-[$optchars]*}
'*:process name:->pname')
-_arguments -s -w $arguments && ret=0
+_arguments -C -s -w $arguments && ret=0
case $state in
(tty)