about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-16 07:16:12 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-16 07:16:12 +0000
commit00eb6e8a25e956bd0dfc3c7e8e7dec266f33ce33 (patch)
treebdfed561a3f94888de3fc52892d709699f137e01 /Completion
parent7ffa89ea7da5f0391fbedde6a335ddfb36727cf2 (diff)
downloadzsh-00eb6e8a25e956bd0dfc3c7e8e7dec266f33ce33.tar.gz
zsh-00eb6e8a25e956bd0dfc3c7e8e7dec266f33ce33.tar.xz
zsh-00eb6e8a25e956bd0dfc3c7e8e7dec266f33ce33.zip
remove unnecessary local
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Builtins/_pids5
1 files changed, 2 insertions, 3 deletions
diff --git a/Completion/Builtins/_pids b/Completion/Builtins/_pids
index b3ff1a058..af6c72c0c 100644
--- a/Completion/Builtins/_pids
+++ b/Completion/Builtins/_pids
@@ -3,7 +3,7 @@
 # If given the `-m <pattern>' option, this tries to complete only pids
 # of processes whose command line match the `<pattern>'.
 
-local out pids index list expl match desc listargs args all nm ret=1
+local out pids list expl match desc listargs args all nm ret=1
 
 _tags processes || return 1
 
@@ -27,8 +27,7 @@ desc="$out[1]"
 out=( "${(@M)out[2,-1]:#${~match}}" )
 
 if [[ "$desc" = (#i)(|*[[:blank:]])pid(|[[:blank:]]*) ]]; then
-  index="${#desc[1,(r)(#i)[[:blank:]]pid]}"
-  pids=( "${(@)${(@M)out#${(l:index::?:)~:-}[^[:blank:]]#}##*[[:blank:]]}" )
+  pids=( "${(@)${(@M)out#${(l.${#desc[1,(r)(#i)[[:blank:]]pid]}..?.)~:-}[^[:blank:]]#}##*[[:blank:]]}" )
 else
   pids=( "${(@)${(@M)out##[^0-9]#[0-9]#}##*[[:blank:]]}" )
 fi