Skip to content

Commit 13b9eb5

Browse files
authored
Merge pull request #1381 from Carpetsmoker/vet
Fix filepaths in the quickfix list for :GoVet
2 parents 8053348 + f439c0c commit 13b9eb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/go/lint.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ function! go#lint#Vet(bang, ...) abort
147147
call go#cmd#autowrite()
148148
echon "vim-go: " | echohl Identifier | echon "calling vet..." | echohl None
149149
if a:0 == 0
150-
let out = go#tool#ExecuteInDir('go vet')
150+
let out = go#util#System('go vet ' . go#util#Shellescape(go#package#ImportPath()))
151151
else
152-
let out = go#tool#ExecuteInDir('go tool vet ' . go#util#Shelljoin(a:000))
152+
let out = go#util#System('go tool vet ' . go#util#Shelljoin(a:000))
153153
endif
154154

155155
let l:listtype = "quickfix"

0 commit comments

Comments
 (0)