mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 15:42:26 +00:00
Skip setting of signs at line 0 and so on, to avoid any issues there.
This commit is contained in:
parent
36acde533f
commit
596a374c6e
@ -1,3 +1,4 @@
|
|||||||
|
scriptencoding utf-8
|
||||||
" Author: w0rp <devw0rp@gmail.com>
|
" Author: w0rp <devw0rp@gmail.com>
|
||||||
" Description: Draws error and warning signs into signcolumn
|
" Description: Draws error and warning signs into signcolumn
|
||||||
|
|
||||||
@ -71,6 +72,11 @@ function! ale#sign#CombineSigns(loclist)
|
|||||||
for obj in a:loclist
|
for obj in a:loclist
|
||||||
let should_append = 1
|
let should_append = 1
|
||||||
|
|
||||||
|
if obj.lnum < 1
|
||||||
|
" Skip warnings and errors at line 0, etc.
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
if len(signlist) > 0 && signlist[-1].lnum == obj.lnum
|
if len(signlist) > 0 && signlist[-1].lnum == obj.lnum
|
||||||
" We can't add the same line twice, because signs must be
|
" We can't add the same line twice, because signs must be
|
||||||
" unique per line.
|
" unique per line.
|
||||||
|
Loading…
Reference in New Issue
Block a user