diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2014-08-26 00:48:18 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2014-08-26 00:48:18 +0200 |
commit | a55d381f745d669c0ef9bdf0a4ce78a045ff3070 (patch) | |
tree | 31c741d92f2077f241835005b8cfd1db251445f6 /Completion/Unix/Command/_pgrep | |
parent | 478d6c1db2ad16ea6b3cb6010cf083f2513494cf (diff) | |
parent | cc69eef1cd835cd8d3f33960e9f616c894e7ae4f (diff) | |
download | zsh-a55d381f745d669c0ef9bdf0a4ce78a045ff3070.tar.gz zsh-a55d381f745d669c0ef9bdf0a4ce78a045ff3070.zip |
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_pgrep')
-rw-r--r-- | Completion/Unix/Command/_pgrep | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep index 3b180ab2d..95d0ea284 100644 --- a/Completion/Unix/Command/_pgrep +++ b/Completion/Unix/Command/_pgrep @@ -70,13 +70,9 @@ _arguments -s -w $arguments && ret=0 case $state in (tty) - compset -P '*,' - - local -a used ttys - used=(${(s:,:)IPREFIX}) - + local -a ttys ttys=( /dev/tty*(N) /dev/pts/*(N) ) - _wanted tty expl 'terminal device' compadd -S ',' -q -F used ${ttys#/dev/} + _sequence -s , _wanted tty expl 'terminal device' compadd - ${ttys#/dev/} ;; (sid) |