Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Cleanup: fix two vimlint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcd047 committed Apr 22, 2014
1 parent 125442f commit 02cbebd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions plugin/syntastic.vim
Expand Up @@ -18,7 +18,7 @@ if has('reltime')
let g:syntastic_start = reltime()
endif

let g:syntastic_version = '3.4.0-42'
let g:syntastic_version = '3.4.0-43'

" Sanity checks {{{1

Expand Down Expand Up @@ -215,15 +215,15 @@ function! s:BufEnterHook() " {{{2
let loclist = filter(getloclist(0), 'v:val["valid"] == 1')
let buffers = syntastic#util#unique(map( loclist, 'v:val["bufnr"]' ))
if &buftype == 'quickfix' && !empty(loclist) && empty(filter( buffers, 'syntastic#util#bufIsActive(v:val)' ))
call g:SyntasticLoclistHide()
call SyntasticLoclistHide()
endif
endfunction " }}}2

function! s:QuitPreHook() " {{{2
call syntastic#log#debug(g:SyntasticDebugAutocommands,
\ 'autocmd: QuitPre, buffer ' . bufnr("") . ' = ' . string(bufname(str2nr(bufnr("")))))
let b:syntastic_skip_checks = !g:syntastic_check_on_wq
call g:SyntasticLoclistHide()
call SyntasticLoclistHide()
endfunction " }}}2

" }}}1
Expand Down
4 changes: 2 additions & 2 deletions plugin/syntastic/cursor.vim
Expand Up @@ -22,7 +22,7 @@ function! g:SyntasticCursorNotifier.refresh(loclist) " {{{2
let b:syntastic_messages = copy(a:loclist.messages(bufnr('')))
let b:oldLine = -1
autocmd! syntastic CursorMoved
autocmd syntastic CursorMoved * call g:SyntasticRefreshCursor()
autocmd syntastic CursorMoved * call SyntasticRefreshCursor()
endif
endfunction " }}}2

Expand All @@ -40,7 +40,7 @@ endfunction " }}}2
" Private methods {{{1

" The following defensive nonsense is needed because of the nature of autocmd
function! g:SyntasticRefreshCursor() " {{{2
function! SyntasticRefreshCursor() " {{{2
if !exists('b:syntastic_messages') || empty(b:syntastic_messages)
" file not checked
return
Expand Down
2 changes: 1 addition & 1 deletion plugin/syntastic/loclist.vim
Expand Up @@ -226,7 +226,7 @@ endfunction " }}}2

" Non-method functions {{{1

function! g:SyntasticLoclistHide() " {{{2
function! SyntasticLoclistHide() " {{{2
call syntastic#log#debug(g:SyntasticDebugNotifications, 'loclist: hide')
silent! lclose
endfunction " }}}2
Expand Down

0 comments on commit 02cbebd

Please sign in to comment.