mirror of https://github.com/dense-analysis/ale
Fix #4331 - Shift line 0 errors to line 1 for virtual-text
This commit is contained in:
parent
a18472cc58
commit
457e0a50f1
|
@ -124,7 +124,7 @@ function! ale#virtualtext#ShowMessage(buffer, item) abort
|
|||
return
|
||||
endif
|
||||
|
||||
let l:line = a:item.lnum
|
||||
let l:line = max([1, a:item.lnum])
|
||||
let l:hl_group = ale#virtualtext#GetGroup(a:item)
|
||||
|
||||
" Get a language-appropriate comment character, or default to '#'.
|
||||
|
|
Loading…
Reference in New Issue