diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-04-01 09:28:01 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-04-01 09:44:26 +0000 |
commit | 727533088a42064d6b4e6d6c5ebe67dd457fb0da (patch) | |
tree | e17b2f045acbe8c78e5923155fb577af1d397ce5 /Completion | |
parent | 5b2bb68364ba025b312168d12a0f43b38b4e6268 (diff) | |
download | zsh-727533088a42064d6b4e6d6c5ebe67dd457fb0da.tar.gz zsh-727533088a42064d6b4e6d6c5ebe67dd457fb0da.tar.xz zsh-727533088a42064d6b4e6d6c5ebe67dd457fb0da.zip |
34814: completion: git: Fix bug introduced by 236da69
Based on a patch by Daniel Hahler <git@thequod.de>.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_git | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 9dafd3c97..cc8fa65c3 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5651,7 +5651,9 @@ __git_recent_commits () { __git_command_successful $pipestatus || return 1 for i j k in "$commits[@]" ; do - descr+=($i:$k) + # Note: the after-the-colon part must be unique across the entire array; + # see workers/34768 + descr+=("$i:[$i] $k") j=${${j# \(}%\)} # strip leading ' (' and trailing ')' for j in ${(s:, :)j}; do if [[ $j == 'tag: '* ]] ; then |