Fix #553 - Filter out errors from other files for gometalinter

This commit is contained in:
w0rp 2017-05-15 20:43:55 +01:00
parent fa3a4b3ba2
commit 11a50b2580
2 changed files with 24 additions and 3 deletions

View file

@ -22,7 +22,7 @@ function! ale_linters#go#gometalinter#Handler(buffer, lines) abort
for l:match in ale_linters#go#gometalinter#GetMatches(a:lines)
" Omit errors from files other than the one currently open
if ale#path#IsBufferPath(a:buffer, l:match[0])
if !ale#path#IsBufferPath(a:buffer, l:match[1])
continue
endif