dafny: include correct filename in lint results

Results can come from included files, not just the current buffer.
This commit is contained in:
D. Ben Knoble
2020-10-08 11:54:17 -04:00
parent b91c6c2edd
commit c37cc1c8a3

View File

@@ -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],