Fix #553 - Filter out errors from other files for gometalinter
This commit is contained in:
parent
fa3a4b3ba2
commit
11a50b2580
2 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue