Thread (48 messages) flat view 48 messages, 1 author, 2021-06-18
STALE1882d

[PATCH v2 35/45] completion: zsh: simplify __gitcomp_direct

From: Felipe Contreras <hidden>
Date: 2021-06-18 18:26:47
Subsystem: the rest · Maintainer: Linus Torvalds

Not much different from __gitcomp_nl.

Signed-off-by: Felipe Contreras <redacted>
---
 contrib/completion/git-completion.zsh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index e515f464ab..bfb5c38a3c 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -90,9 +90,7 @@ __gitcomp_opts ()
 
 __gitcomp_direct ()
 {
-	emulate -L zsh
-
-	compadd -Q -S '' -- ${(f)1} && _ret=0
+	__gitcomp_nl "$1" "" "" ""
 }
 
 __gitcomp_nl ()
-- 
2.32.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help