Skip to content

Commit

Permalink
GoImpl: support relative (vendor) imports (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
boz authored and arp242 committed Sep 11, 2017
1 parent 37e5082 commit 75d0e9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/go/impl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function! go#impl#Impl(...) abort
endif

try
let result = go#util#System(join(go#util#Shelllist([binpath, recv, iface], ' ')))
let dirname = fnameescape(expand('%:p:h'))
let result = go#util#System(join(go#util#Shelllist([binpath, '-dir', dirname, recv, iface], ' ')))
let result = substitute(result, "\n*$", "", "")
if go#util#ShellError() != 0
call go#util#EchoError(result)
Expand Down

0 comments on commit 75d0e9f

Please sign in to comment.