diff options
author | D. Ben Knoble <ben.knoble+github@gmail.com> | 2020-10-08 11:54:17 -0400 |
---|---|---|
committer | D. Ben Knoble <ben.knoble+github@gmail.com> | 2020-10-08 11:54:56 -0400 |
commit | c37cc1c8a3cd2d014258d4252c4b495e48e844a5 (patch) | |
tree | 9902b2b522d0a74ebb4e906fe1c7ccae14ce03a3 | |
parent | b91c6c2edd20794ad5637b561ed4c678647a76e5 (diff) | |
download | ale-c37cc1c8a3cd2d014258d4252c4b495e48e844a5.zip |
dafny: include correct filename in lint results
Results can come from included files, not just the current buffer.
-rw-r--r-- | ale_linters/dafny/dafny.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/dafny/dafny.vim b/ale_linters/dafny/dafny.vim index b5b90675..e6021d99 100644 --- a/ale_linters/dafny/dafny.vim +++ b/ale_linters/dafny/dafny.vim @@ -6,7 +6,7 @@ function! ale_linters#dafny#dafny#Handle(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) call add(l:output, { - \ 'bufnr': a:buffer, + \ 'filename': l:match[1], \ 'col': l:match[3] + 0, \ 'lnum': l:match[2] + 0, \ 'text': l:match[5], |