From 5192738b9d34710dd109dba40a25b93e674d60f4 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Sat, 8 Feb 2014 20:12:44 +0200 Subject: [PATCH] Vimlint: add a safety net for a bug in Vim. --- syntax_checkers/vim/vimlint.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/vim/vimlint.vim b/syntax_checkers/vim/vimlint.vim index 08abb515..552e1291 100644 --- a/syntax_checkers/vim/vimlint.vim +++ b/syntax_checkers/vim/vimlint.vim @@ -80,7 +80,7 @@ function! s:vimlintOutput(filename, pos, ev, eid, mes, obj) \ 'vcol': 0, \ 'type': a:ev[0], \ 'text': '[' . a:eid . '] ' . a:mes, - \ 'valid': 1 }) + \ 'valid': a:pos.lnum > 0 }) endfunction " @vimlint(EVL103, 0, a:filename)