threads / patch / 33715

patchcompletion: zsh: don't override suffix on _detault

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

## tl;dr

One message between May 3, 2013 and May 3, 2013. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Felipe Contreras· May 3, 2013, 21:35 UTC · lore

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(-)
Show changes to contrib/completion/git-completion.zsh +1 −1
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

← back to recent threads