diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
commit | 626e2aeb1657f112feb6d03c34bb9e9f44764c75 (patch) | |
tree | 9e4a306df7b5826a796b99f0b6ffa3423ee9f5f9 /Completion/Builtins/_sched | |
parent | 766fcd5ee2ef632cd982a1ec118dbdfde17c03a8 (diff) | |
download | zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.gz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.xz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.zip |
zsh-workers/10195
Diffstat (limited to 'Completion/Builtins/_sched')
-rw-r--r-- | Completion/Builtins/_sched | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Builtins/_sched b/Completion/Builtins/_sched index 783113c45..97d8830b8 100644 --- a/Completion/Builtins/_sched +++ b/Completion/Builtins/_sched @@ -4,7 +4,7 @@ local expl lines disp if [[ CURRENT -eq 2 ]]; then if compset -P -; then - _wanted -C - jobs expl 'scheduled jobs' || return 1 + _wanted -C - jobs || return 1 lines=(${(f)"$(sched)"}) if zstyle -T ":completion:${curcontext}:jobs" verbose; then @@ -12,7 +12,9 @@ if [[ CURRENT -eq 2 ]]; then else disp=() fi - [[ -z $lines ]] || compadd "$expl[@]" "$disp[@]" - {1..$#lines} + [[ -z $lines ]] || _loop jobs expl 'scheduled jobs' \ + compadd "$disp[@]" - {1..$#lines} + return else _message 'time specification' return 1 |