diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-10-30 23:12:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 23:12:45 +0100 |
commit | 687c50bdf999f8efd45f3c8f578a62329b0633da (patch) | |
tree | c81651da9960a64cf25297247c1988dda304cb3b /plugins | |
parent | e363109a6d3367d8be1dd66f05a38eb38b4257d7 (diff) | |
download | zsh-687c50bdf999f8efd45f3c8f578a62329b0633da.tar.gz zsh-687c50bdf999f8efd45f3c8f578a62329b0633da.tar.bz2 zsh-687c50bdf999f8efd45f3c8f578a62329b0633da.zip |
fabric: fix awk "return not in function" error in completion
Fixes #8337
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fabric/_fab | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fabric/_fab b/plugins/fabric/_fab index 89e73e58b..9102dadef 100644 --- a/plugins/fabric/_fab +++ b/plugins/fabric/_fab @@ -6,7 +6,7 @@ declare -A opt_args declare -a target_list target_list=("${(@f)$(fab -l 2>/dev/null | awk '{ - if (NF == 0 || NR == 1) return + if (NF == 0 || NR == 1) next if (NF < 2) print $1 else { docstring=substr($0, index($0,$2)) |