ops, forgot to check buftype before calling lclose, avoid calling it if not needed.

This commit is contained in:
millermedeiros 2011-12-16 10:41:36 -02:00
parent d3b122dfba
commit 233f7952f1

View File

@ -91,7 +91,7 @@ augroup syntastic
autocmd BufReadPost,BufWritePost * call s:UpdateErrors(1) autocmd BufReadPost,BufWritePost * call s:UpdateErrors(1)
autocmd BufWinEnter * if empty(&bt) | call s:AutoToggleLocList() | endif autocmd BufWinEnter * if empty(&bt) | call s:AutoToggleLocList() | endif
autocmd BufUnload,BufWinLeave * lclose autocmd BufUnload,BufWinLeave * if empty(&bt) | lclose | endif
augroup END augroup END
@ -114,7 +114,6 @@ function! s:UpdateErrors(auto_invoked)
endif endif
call s:AutoToggleLocList() call s:AutoToggleLocList()
endfunction endfunction
function s:AutoToggleLocList() function s:AutoToggleLocList()