Fix bugs in s:uniq().

I can't believe I got this wrong.

Fixes #485.
This commit is contained in:
Andy Stewart
2018-02-22 10:17:28 +00:00
parent c325a8b6d3
commit 87097d8923

View File

@@ -101,8 +101,8 @@ endfunction
function! s:uniq(list)
let processed = []
for e in a:list
if index(a:list, e) == -1
call add(a:list, e)
if index(processed, e) == -1
call add(processed, e)
endif
endfor
return processed