Reworked patch by James Vega because I don't like "continue".

This commit is contained in:
Markus Braun 2010-02-16 07:40:41 +00:00
parent 82e70cf70a
commit 05a3e4e1f6

View File

@ -1054,13 +1054,11 @@ function s:GPGNameToID(name)
let duplicates = {}
let choices = "The name \"" . a:name . "\" is ambiguous. Please select the correct key:\n"
for line in lines
" check if this line has already been processed
if !has_key(duplicates, line)
let duplicates[line] = 1
else
" Exact line has already been seen. Probably multiple keyrings being
" searched with the same data.
continue
endif
let fields = split(line, ":")
" search for the next uid
if (pubseen == 1)
@ -1085,6 +1083,7 @@ function s:GPGNameToID(name)
let pubseen = 1
endif
endif
endif
endfor