fixed rust errors parsing

use correct column values instead of absolute byte positions
This commit is contained in:
Kent Sibilev 2018-01-27 16:15:29 -05:00
parent bc63325881
commit ea60fcea39

View File

@ -51,8 +51,8 @@ function! ale#handlers#rust#HandleRustErrors(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:span.line_start,
\ 'end_lnum': l:span.line_end,
\ 'col': l:span.byte_start,
\ 'end_col': l:span.byte_end,
\ 'col': l:span.column_start,
\ 'end_col': l:span.column_end,
\ 'text': empty(l:span.label) ? l:error.message : printf('%s: %s', l:error.message, l:span.label),
\ 'type': toupper(l:error.level[0]),
\})