Skip to content

Commit

Permalink
Fix completion for >=zsh-5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Jan 7, 2017
1 parent 53cecd4 commit b29e264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion share/schedule/Schedule/Connect.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# common parts of schedule and schedule-server which are always needed

BEGIN { require 5.012 }
package Schedule::Connect v7.5.0;
package Schedule::Connect v7.5.1;

use strict;
use warnings;
Expand Down
9 changes: 3 additions & 6 deletions zsh/_schedule
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ case $state in
'cancel:cancel queued jobs'
)
}
_describe -t commands 'command' cmds
ret=$?;;
_describe -t commands 'command' cmds && ret=0;;
(*rest)
local cmd=
if [[ $NORMARG -gt 1 ]]
Expand All @@ -133,8 +132,7 @@ case $state in
jobrange=
case $cmd in
(*q*|s|start)
_normal
ret=$?;;
_normal && ret=0;;
(sto*)
;;
(re*)
Expand All @@ -146,8 +144,7 @@ case $state in
esac
if [[ $#jobrange -gt 0 ]]
then _description jobrange expl 'job range'
compadd "$expl[@]" - $jobrange
ret=$?
compadd "$expl[@]" - $jobrange && ret=0
fi;;
esac
return ret

0 comments on commit b29e264

Please sign in to comment.