X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/d3ff85c0d7594234d13a5256adaa2d77d7a7a4d6..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