summaryrefslogtreecommitdiff
path: root/ale_linters/dafny
diff options
context:
space:
mode:
authorD. Ben Knoble <ben.knoble+github@gmail.com>2020-10-08 11:54:17 -0400
committerD. Ben Knoble <ben.knoble+github@gmail.com>2020-10-08 11:54:56 -0400
commitc37cc1c8a3cd2d014258d4252c4b495e48e844a5 (patch)
tree9902b2b522d0a74ebb4e906fe1c7ccae14ce03a3 /ale_linters/dafny
parentb91c6c2edd20794ad5637b561ed4c678647a76e5 (diff)
downloadale-c37cc1c8a3cd2d014258d4252c4b495e48e844a5.zip
dafny: include correct filename in lint results
Results can come from included files, not just the current buffer.
Diffstat (limited to 'ale_linters/dafny')
-rw-r--r--ale_linters/dafny/dafny.vim2
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],