Permalink
Browse files

Fix for ant targets with leading dash

As suggested in #3329 (comment)
  • Loading branch information...
1 parent 013b2bf commit 349493a0b81ae98117ea1a115a92ba509476298f @capeterson capeterson committed Feb 9, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/ant/ant.plugin.zsh
@@ -9,7 +9,7 @@ _ant () {
if _ant_does_target_list_need_generating; then
ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets
fi
- compadd `cat .ant_targets`
+ compadd -- `cat .ant_targets`
fi
}

0 comments on commit 349493a

Please sign in to comment.