From 0d1f1d09f029e818d966359e49a77505c84ff46d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 23 Feb 2013 16:55:21 -0500 Subject: [PATCH] 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. --- completions/rbenv.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/rbenv.zsh b/completions/rbenv.zsh index c439c5aa..5b23d42f 100644 --- a/completions/rbenv.zsh +++ b/completions/rbenv.zsh @@ -11,7 +11,7 @@ _rbenv() { if [ "${#words}" -eq 2 ]; then completions="$(rbenv commands)" else - completions="$(rbenv completions ${words[2,-1]})" + completions="$(rbenv completions ${words[2,-2]})" fi reply=("${(ps:\n:)completions}")