ops, forgot to check buftype before calling lclose, avoid calling it if not needed.
This commit is contained in:
parent
d3b122dfba
commit
233f7952f1
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user