Fix #741 - Set highlights for entire lines when signs are disabled

This commit is contained in:
w0rp
2017-11-17 14:29:51 +00:00
parent 22ec81e1de
commit 5635b3c864
3 changed files with 60 additions and 3 deletions

View File

@@ -91,6 +91,22 @@ function! ale#highlight#UpdateHighlights() abort
\ 'matchaddpos(l:group, v:val)'
\)
endfor
" If highlights are enabled and signs are not enabled, we should still
" offer line highlights by adding a separate set of highlights.
if !g:ale_set_signs
for l:item in l:item_list
if l:item.type is# 'W'
let l:group = 'ALEWarningLine'
elseif l:item.type is# 'I'
let l:group = 'ALEInfoLine'
else
let l:group = 'ALEErrorLine'
endif
call matchaddpos(l:group, [l:item.lnum])
endfor
endif
endfunction
function! ale#highlight#BufferHidden(buffer) abort