mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix multiple argument completion with zsh
This changes the zsh completion to omit the final, incomplete command line argument when invoking rbenv completions, making it consistent with the bash completion. Since no built-in completion cares about the argument list, this inconsistency only affected plugins.
This commit is contained in:
parent
13f36e0416
commit
0d1f1d09f0
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ _rbenv() {
|
||||||
if [ "${#words}" -eq 2 ]; then
|
if [ "${#words}" -eq 2 ]; then
|
||||||
completions="$(rbenv commands)"
|
completions="$(rbenv commands)"
|
||||||
else
|
else
|
||||||
completions="$(rbenv completions ${words[2,-1]})"
|
completions="$(rbenv completions ${words[2,-2]})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reply=("${(ps:\n:)completions}")
|
reply=("${(ps:\n:)completions}")
|
||||||
|
|
Loading…
Reference in a new issue