completion: tcsh: Fix regression by drop of wrapper functions
The cleanup of old compat wrappers in bash completion caused a regression on tcsh completion that still uses them. Let's update the tcsh call site as well for addressing it. Fixes: 441ecdab37fe ("completion: bash: remove old compat wrappers") Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Takashi Iwai committed
Aug 18, 2021 at 15:27 UTC
ff7b83f5629c0c00910384a0f524d89d3a8bf804
1 file changed
+3
-2
contrib/completion/git-completion.tcsh
+3
-2
@@ -80,8 +80,9 @@ else
80
COMP_CWORD=\$((\${#COMP_WORDS[@]}-1))
81
fi
82
83
-# Call _git() or _gitk() of the bash script, based on the first argument
84
-_\${1}
83
+# Call __git_wrap__git_main() or __git_wrap__gitk_main() of the bash script,
84
+# based on the first argument
85
+__git_wrap__\${1}_main
86
87
IFS=\$'\n'
88
if [ \${#COMPREPLY[*]} -eq 0 ]; then