Skip to content

Commit

Permalink
Move func
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-yano committed Feb 18, 2020
1 parent 7f2a3f7 commit f30c73b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions autoload/fzf_preview/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ function! fzf_preview#util#is_project_file(file, splited_project_path) abort
return is_project_file
endfunction

function! fzf_preview#util#uniq(list)
let result = []
for item in a:list
if index(result, item) == -1
call add(result, item)
endif
endfor
return result
endfunction

function! fzf_preview#util#align_lists(lists) abort
let maxes = {}
for list in a:lists
Expand All @@ -58,3 +48,14 @@ function! fzf_preview#util#align_lists(lists) abort
endfor
return a:lists
endfunction

function! fzf_preview#util#uniq(list) abort
let result = []
for item in a:list
if index(result, item) == -1
call add(result, item)
endif
endfor
return result
endfunction

0 comments on commit f30c73b

Please sign in to comment.