summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Sibilev <ksibilev@gmail.com>2018-01-27 16:15:29 -0500
committerKent Sibilev <ksibilev@gmail.com>2018-01-27 16:15:29 -0500
commitea60fcea393da1b84dfd62ac1ff10dba6d2dccd2 (patch)
treef08d6f6a1a77c964d65f1bbde9823270418463a4
parentbc633258816049af921c445e62cea07c061301dc (diff)
downloadale-ea60fcea393da1b84dfd62ac1ff10dba6d2dccd2.zip
fixed rust errors parsing
use correct column values instead of absolute byte positions
-rw-r--r--autoload/ale/handlers/rust.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/handlers/rust.vim b/autoload/ale/handlers/rust.vim
index 395b915c..537bc731 100644
--- a/autoload/ale/handlers/rust.vim
+++ b/autoload/ale/handlers/rust.vim
@@ -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]),
\})