Skip to content

Commit 5500082

Browse files
committed
completion: Complete only external commands for 'run'.
The difference is easiest to see when the following style is in effect: . zstyle ':completion:*' group-name ''
1 parent f7f3bce commit 5500082

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_vcsh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ function _vcsh-rename () {
6363

6464
function _vcsh-run () {
6565
(( CURRENT == 2 )) && __vcsh_repositories
66-
if (( CURRENT >= 3 )); then
66+
(( CURRENT == 3 )) && _command_names -e
67+
if (( CURRENT >= 4 )); then
68+
# see _precommand in zsh
6769
words=( "${(@)words[3,-1]}" )
6870
(( CURRENT -= 2 ))
69-
_complete
71+
_normal
7072
fi
7173
}
7274

0 commit comments

Comments
 (0)