mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-30 08:04:31 +08:00
#538 Fix an off-by-one bug with end columns
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user