Highlighting should not filter linter messages without column info

This commit is contained in:
ninjawithaneedle 2017-02-13 16:24:25 +05:30
parent 5cdd1498b4
commit a2f59049dc

View File

@ -63,8 +63,9 @@ function! ale#highlight#SetHighlights(buffer, loclist) abort
" we next open it. " we next open it.
" "
" We'll filter the loclist down to items we can set now. " We'll filter the loclist down to items we can set now.
let temp_loclist = deepcopy(a:loclist)
let s:buffer_highlights[a:buffer] = filter( let s:buffer_highlights[a:buffer] = filter(
\ a:loclist, \ temp_loclist,
\ 'v:val.bufnr == a:buffer && v:val.col > 0' \ 'v:val.bufnr == a:buffer && v:val.col > 0'
\) \)