From 727533088a42064d6b4e6d6c5ebe67dd457fb0da Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 1 Apr 2015 09:28:01 +0000 Subject: 34814: completion: git: Fix bug introduced by 236da69 Based on a patch by Daniel Hahler . --- Completion/Unix/Command/_git | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion') 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 -- cgit 1.4.1