From f1f7deed33b260741257b10c8b3c44f873f563fe Mon Sep 17 00:00:00 2001 From: Joshua Rubin Date: Wed, 16 Sep 2015 14:12:06 -0600 Subject: [PATCH] use package instead of file --- syntax_checkers/go/gometalinter.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/go/gometalinter.vim b/syntax_checkers/go/gometalinter.vim index c7019a71..4f23c828 100644 --- a/syntax_checkers/go/gometalinter.vim +++ b/syntax_checkers/go/gometalinter.vim @@ -19,7 +19,7 @@ let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_go_gometalinter_GetLocList() dict - let makeprg = self.makeprgBuild({}) + let makeprg = self.getExecEscaped() let errorformat = \ '%f:%l:%c:%m,' . @@ -28,6 +28,7 @@ function! SyntaxCheckers_go_gometalinter_GetLocList() dict return SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat, + \ 'cwd': expand('%:p:h', 1), \ 'defaults': {'type': 'w'}, \ 'subtype': 'Style' }) endfunction