mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-19 12:31:26 +08:00
set correct Rust span end column
The Rust compiler returns the first column that is _not_ part of the current span as `column_end`, while Ale expects `end_col` to signify the last column of the span.
This commit is contained in:
2 files changed
+10
-10
No files matched your search
@@ -60,7 +60,7 @@ function! ale#handlers#rust#HandleRustErrors(buffer, lines) abort
|
||||
\ 'lnum': l:span.line_start,
|
||||
\ 'end_lnum': l:span.line_end,
|
||||
\ 'col': l:span.column_start,
|
||||
\ 'end_col': l:span.column_end,
|
||||
\ 'end_col': l:span.column_end-1,
|
||||
\ 'text': empty(l:span.label) ? l:error.message : printf('%s: %s', l:error.message, l:span.label),
|
||||
\ 'type': toupper(l:error.level[0]),
|
||||
\})
|
||||
|
||||
Reference in new issue
Block a user