diff options
author | Jean Mertz <jean@mertz.fm> | 2019-03-02 16:17:17 +0100 |
---|---|---|
committer | Jean Mertz <jean@mertz.fm> | 2019-03-02 16:17:17 +0100 |
commit | 26460a77a7c1860e504a66c4eabe586efbdfe70d (patch) | |
tree | ee89aa488aab89d483aeec9c743cc3de434c26bd /autoload | |
parent | c4328f2a31a8acac96ca8d7615231812bad700bf (diff) | |
download | ale-26460a77a7c1860e504a66c4eabe586efbdfe70d.zip |
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.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/rust.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/handlers/rust.vim b/autoload/ale/handlers/rust.vim index c6a4b670..dda6466e 100644 --- a/autoload/ale/handlers/rust.vim +++ b/autoload/ale/handlers/rust.vim @@ -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]), \}) |