Skip to contentSkip to conversation

completion: tcsh: Fix regression by drop of wrapper functions

PATCH In review Takashi Iwai 2 participants 2 messages Aug 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 contrib/completion/git-completion.tcsh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
contrib/completion/git-completion.tcsh +3 -2
index 4a790d8f4ec1..ba797e5b3cd5 100644
@@ -80,8 +80,9 @@ else
 	COMP_CWORD=\$((\${#COMP_WORDS[@]}-1))
 fi
 
-# Call _git() or _gitk() of the bash script, based on the first argument
-_\${1}
+# Call __git_wrap__git_main() or __git_wrap__gitk_main() of the bash script,
+# based on the first argument
+__git_wrap__\${1}_main
 
 IFS=\$'\n'
 if [ \${#COMPREPLY[*]} -eq 0 ]; then
Signature · 1 line
2.26.2
#1 lore raw
Quoted 9 lines · Takashi Iwai

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")
---
 contrib/completion/git-completion.tcsh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Thanks. Will queue.

Quoted 16 lines
contrib/completion/git-completion.tcsh +3 -2
index 4a790d8f4ec1..ba797e5b3cd5 100644
@@ -80,8 +80,9 @@ else
 	COMP_CWORD=\$((\${#COMP_WORDS[@]}-1))
 fi
 
-# Call _git() or _gitk() of the bash script, based on the first argument
-_\${1}
+# Call __git_wrap__git_main() or __git_wrap__gitk_main() of the bash script,
+# based on the first argument
+__git_wrap__\${1}_main
 
 IFS=\$'\n'
 if [ \${#COMPREPLY[*]} -eq 0 ]; then