Fix #4331 - Shift line 0 errors to line 1 for virtual-text

This commit is contained in:
w0rp 2022-12-27 23:40:49 +00:00
parent a18472cc58
commit 457e0a50f1
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 1 additions and 1 deletions

View File

@ -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 '#'.