From d7ed49f84964aebdaa180b553e83943cd85c5d20 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 22 Jan 2017 14:54:57 +0000 Subject: Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues. --- autoload/ale/list.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload/ale/list.vim') diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim index 480880e4..a086b10c 100644 --- a/autoload/ale/list.vim +++ b/autoload/ale/list.vim @@ -4,11 +4,11 @@ " Return 1 if there is a buffer with buftype == 'quickfix' in bufffer list function! ale#list#IsQuickfixOpen() abort for l:buf in range(1, bufnr('$')) - if getbufvar(l:buf, '&buftype') ==# 'quickfix' + if getbufvar(l:buf, '&buftype') ==# 'quickfix' return 1 endif endfor - return 0 + return 0 endfunction function! ale#list#SetLists(loclist) abort -- cgit v1.2.3