Skip to content

Commit

Permalink
Don't return duplicate matches in xolox#misc#path#which()
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 1, 2013
1 parent 578ee2e commit b6d0aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/xolox/misc/path.vim
@@ -1,7 +1,7 @@
" Pathname manipulation functions.
"
" Author: Peter Odding <peter@peterodding.com>
" Last Change: May 24, 2013
" Last Change: June 1, 2013
" URL: http://peterodding.com/code/vim/misc/

let s:windows_compatible = xolox#misc#os#is_win()
Expand Down Expand Up @@ -44,7 +44,7 @@ function! xolox#misc#path#which(...) " {{{1
endif
endfor
endfor
return matches
return xolox#misc#list#unique(matches)
endfunction

function! xolox#misc#path#split(path) " {{{1
Expand Down

0 comments on commit b6d0aa5

Please sign in to comment.