From 26b45eeccf5a6d074c59212ed31f72b99f9d0bab Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 15 Dec 2011 22:31:19 +0000 Subject: [PATCH] add a couple of "!"s to function defs - for consistency --- plugin/syntastic.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index acdd49d6..aabd2bab 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -211,11 +211,11 @@ function! s:ErrorsForType(type) return filter(copy(b:syntastic_loclist), 'v:val["type"] ==? "' . a:type . '"') endfunction -function s:Errors() +function! s:Errors() return extend(s:ErrorsForType("E"), s:ErrorsForType('')) endfunction -function s:Warnings() +function! s:Warnings() return s:ErrorsForType("W") endfunction @@ -232,7 +232,7 @@ let s:first_sign_id = 5000 let s:next_sign_id = s:first_sign_id "place signs by all syntax errs in the buffer -function s:SignErrors() +function! s:SignErrors() if s:BufHasErrorsOrWarningsToDisplay() for i in b:syntastic_loclist if i['bufnr'] != bufnr("")