Permalink
Browse files

Don't return duplicate matches in xolox#misc#path#which()

  • Loading branch information...
1 parent 578ee2e commit b6d0aa53602db16314a56b986cea5deb02b78330 @xolox committed Jun 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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()
@@ -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

0 comments on commit b6d0aa5

Please sign in to comment.