X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/3c5bb9b0993011e30695dae011daa7b861847f11..eadb8df6aa71a76e5be36492edcadb118bd862ac:/_vcsh?ds=inline diff --git a/_vcsh b/_vcsh index 6880f72..9aca0f9 100644 --- a/_vcsh +++ b/_vcsh @@ -63,10 +63,12 @@ function _vcsh-rename () { function _vcsh-run () { (( CURRENT == 2 )) && __vcsh_repositories - if (( CURRENT >= 3 )); then + (( CURRENT == 3 )) && _command_names -e + if (( CURRENT >= 4 )); then + # see _precommand in zsh words=( "${(@)words[3,-1]}" ) (( CURRENT -= 2 )) - _complete + _normal fi } @@ -142,7 +144,7 @@ function _vcsh () { GIT_DIR=$VCSH_REPO_D/$words[1].git _dispatch git git else curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:" - _call_function ret _vcsh-${vcshcommand} + _call_function ret _vcsh-${vcshcommand} && (( ret )) fi fi fi