This commit is contained in:
Jeronimo Garcia
2024-11-22 04:59:13 +00:00
committed by GitHub

View File

@@ -421,8 +421,17 @@ endfunction
function! fzf#vim#_uniq(list)
let visited = {}
let ret = []
if exists("g:fzf_history_files_ignored") == 0
let g:fzf_history_files_ignored = []
endif
for l in a:list
if !empty(l) && !has_key(visited, l)
let skip = 0
for i in g:fzf_history_files_ignored
if len(matchstr(l,i)) > 0
let skip=1
endif
endfor
if !empty(l) && !has_key(visited, l) && skip == 0
call add(ret, l)
let visited[l] = 1
endif