Skip to content

Commit 29c61e1

Browse files
committed
allow files to be opened and checked outside of project directory
1 parent cf35cae commit 29c61e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax_checkers/rust/cargo.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function! SyntaxCheckers_rust_cargo_GetLocList() dict
4141

4242
return SyntasticMake({
4343
\ 'makeprg': makeprg,
44+
\ 'cwd': expand('%:p:h'),
4445
\ 'errorformat': errorformat })
4546
endfunction
4647

0 commit comments

Comments
 (0)