Skip to content

Commit

Permalink
Fix error when GOPATH contains multiple paths
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Feb 14, 2015
1 parent 3b5ad2c commit 760e377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/extra.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let s:extras = [
function! s:install_extras()
let gopath = substitute($GOPATH, (has('win32') || has('win64')) ? ';' : ':', ',', 'g')
let gopath = join(filter(map(s:extras, "
\ globpath(gopath, 'src/' . v:val)
\ join(globpath(gopath, 'src/' . v:val, 0, 1), ',')
\"), 'len(v:val)>0'), ',')
if len(gopath) > 0
exec 'set rtp+=' . gopath
Expand Down

0 comments on commit 760e377

Please sign in to comment.