Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 01/16] _git: fix a wrong variable in __git_config_values



From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>

This probably was a copy/paste mistake.
---
 Completion/Unix/Command/_git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index db59a9b..49a213c 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5912,7 +5912,7 @@ __git_config_values () {
   default=$2
   shift 2
   values=($*)
-  [[ -n $current ]] && values[(r)$(__git_pattern_escape $default):*]+=' (current)'
+  [[ -n $current ]] && values[(r)$(__git_pattern_escape $current):*]+=' (current)'
   values[(r)$(__git_pattern_escape $default):*]+=' (default)'
 
   _describe -t ${opts[-t]:-values} ${opts[-l]:-value} values
-- 
1.8.2.2



Messages sorted by: Reverse Date, Date, Thread, Author