Reworked patch by James Vega because I don't like "continue".
This commit is contained in:
parent
82e70cf70a
commit
05a3e4e1f6
@ -1054,13 +1054,11 @@ function s:GPGNameToID(name)
|
|||||||
let duplicates = {}
|
let duplicates = {}
|
||||||
let choices = "The name \"" . a:name . "\" is ambiguous. Please select the correct key:\n"
|
let choices = "The name \"" . a:name . "\" is ambiguous. Please select the correct key:\n"
|
||||||
for line in lines
|
for line in lines
|
||||||
|
|
||||||
|
" check if this line has already been processed
|
||||||
if !has_key(duplicates, line)
|
if !has_key(duplicates, line)
|
||||||
let duplicates[line] = 1
|
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, ":")
|
let fields = split(line, ":")
|
||||||
" search for the next uid
|
" search for the next uid
|
||||||
if (pubseen == 1)
|
if (pubseen == 1)
|
||||||
@ -1085,6 +1083,7 @@ function s:GPGNameToID(name)
|
|||||||
let pubseen = 1
|
let pubseen = 1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user