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

This commit is contained in:
w0rp committed 2017-05-15 20:44:09 +01:00
1 parent 2503eda68b
commit 548c1a1007
2 files changed
+24 -3

No files matched your search

+1 -1
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