summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-06 13:01:33 +0100
committerw0rp <devw0rp@gmail.com>2016-10-06 13:01:33 +0100
commit596a374c6ec080fbd667e1686729ed9173a725cb (patch)
tree884b348fba9b173052a6173a624e298a163c393d /plugin
parent36acde533fa5643b85f06e4dc1616135aed878fd (diff)
downloadale-596a374c6ec080fbd667e1686729ed9173a725cb.zip
Skip setting of signs at line 0 and so on, to avoid any issues there.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale/sign.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/ale/sign.vim b/plugin/ale/sign.vim
index 3bf5552c..5950ae99 100644
--- a/plugin/ale/sign.vim
+++ b/plugin/ale/sign.vim
@@ -1,3 +1,4 @@
+scriptencoding utf-8
" Author: w0rp <devw0rp@gmail.com>
" Description: Draws error and warning signs into signcolumn
@@ -71,6 +72,11 @@ function! ale#sign#CombineSigns(loclist)
for obj in a:loclist
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
" We can't add the same line twice, because signs must be
" unique per line.