From 11a50b25807d7730adb42575d72f990fb8c32a7b Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 15 May 2017 20:43:55 +0100 Subject: Fix #553 - Filter out errors from other files for gometalinter --- ale_linters/go/gometalinter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/go/gometalinter.vim') diff --git a/ale_linters/go/gometalinter.vim b/ale_linters/go/gometalinter.vim index aa524013..f47df6b9 100644 --- a/ale_linters/go/gometalinter.vim +++ b/ale_linters/go/gometalinter.vim @@ -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 -- cgit v1.2.3