diff options
author | Andrey Popp <8mayday@gmail.com> | 2019-01-19 18:50:21 +0300 |
---|---|---|
committer | Andrey Popp <8mayday@gmail.com> | 2019-01-19 18:50:21 +0300 |
commit | d6d6fcf928b8928fe0461e87cee354baf5b2d66a (patch) | |
tree | a21379a2ae36dcb93f2ead5ae9c0fba44fc9e93c | |
parent | d1fc084b2d3af6dd9807a01a6ca7822af6c2a78f (diff) | |
download | ale-d6d6fcf928b8928fe0461e87cee354baf5b2d66a.zip |
End position in LSP range is exclusive
From LSP spec:
> A range in a text document expressed as (zero-based) start and end
> positions. A range is comparable to a selection in an editor. Therefore
> the end position is exclusive.
-rw-r--r-- | autoload/ale/lsp/response.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/lsp/response.vim b/autoload/ale/lsp/response.vim index 08b36808..5e62a29a 100644 --- a/autoload/ale/lsp/response.vim +++ b/autoload/ale/lsp/response.vim @@ -33,7 +33,7 @@ function! ale#lsp#response#ReadDiagnostics(response) abort \ 'lnum': l:diagnostic.range.start.line + 1, \ 'col': l:diagnostic.range.start.character + 1, \ 'end_lnum': l:diagnostic.range.end.line + 1, - \ 'end_col': l:diagnostic.range.end.character + 1, + \ 'end_col': l:diagnostic.range.end.character, \} if l:severity == s:SEVERITY_WARNING |