git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] completion: zsh: don't override suffix on _detault

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 3, 2013, 21:35 UTC
Message-ID
<1367616950-20700-1-git-send-email-felipe.contreras@gmail.com>

zsh is smart enough to add the right suffix while completing, there's no point in trying to do the same as bash.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 contrib/completion/git-completion.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index 49f0cb8..2565d2e 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -198,7 +198,7 @@ _git ()
 		emulate ksh -c __${service}_main
 	fi
 
-	let _ret && _default -S '' && _ret=0
+	let _ret && _default && _ret=0
 	return _ret
 }
 
-- 
1.8.3.rc0.401.g45bba44
Message 1 of 1 in “completion: zsh: don't override suffix on _detault”
  1. completion: zsh: don't override suffix on _detaultFelipe Contreras, May 3, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.