瀏覽代碼

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.
pull/360/head^2
Tim Pope 13 年之前
committed by Mislav Marohnić
父節點
當前提交
0d1f1d09f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      completions/rbenv.zsh

+ 1
- 1
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}")

Loading…
取消
儲存