diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-16 19:46:19 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-16 19:46:19 +0100 |
commit | e2860f8a26dc9c04bb4ad6fb59ffb8c743717149 (patch) | |
tree | e2ac3b3da9d9ac9ed09efa1bcfc063d6d3eb4c42 /autoload | |
parent | 1b53fa841b914478bd2c68c4c471d9be4ad05798 (diff) | |
download | ale-e2860f8a26dc9c04bb4ad6fb59ffb8c743717149.zip |
#538 Fix an off-by-one bug with end columns
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/highlight.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/highlight.vim b/autoload/ale/highlight.vim index b51e5b2d..4ac1d1e4 100644 --- a/autoload/ale/highlight.vim +++ b/autoload/ale/highlight.vim @@ -86,7 +86,7 @@ function! ale#highlight#UpdateHighlights() abort let l:col = l:item.col let l:group = l:item.type ==# 'E' ? 'ALEError' : 'ALEWarning' let l:line = l:item.lnum - let l:size = has_key(l:item, 'end_col') ? l:item.end_col - l:col : 1 + let l:size = has_key(l:item, 'end_col') ? l:item.end_col - l:col + 1 : 1 " Rememeber the match ID for the item. " This ID will be used to preserve loclist items which are set |