@@ -72,7 +72,6 @@ __gitcomp ()
esac
array+=("$c")
done
- compset -P '*[=:]'
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0
;;
*)
@@ -91,7 +90,6 @@ __gitcomp ()
esac
array+=("$c")
done
- compset -P '*[=:]'
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0
;;
esac
@@ -101,7 +99,6 @@ __gitcomp_direct ()
{
emulate -L zsh
- compset -P '*[=:]'
compadd -Q -S '' -- ${(f)1} && _ret=0
}
@@ -109,7 +106,6 @@ __gitcomp_nl ()
{
emulate -L zsh
- compset -P '*[=:]'
compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0
}
@@ -117,7 +113,6 @@ __gitcomp_file ()
{
emulate -L zsh
- compset -P '*[=:]'
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
}
@@ -135,6 +130,8 @@ __git_complete_command ()
{
emulate -L zsh
+ compset -P '*[=:]'
+
local command="$1"
local completion_func="_git_${command//-/_}"
if (( $+functions[$completion_func] )); then
So we don't have to set it every time. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- contrib/completion/git-completion.zsh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)