check existence of airline augroup before overwriting statusline

This commit is contained in:
Bailey Ling
2013-08-15 16:05:12 -04:00
parent 12fc908f43
commit 6269632164
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ function! s:check_statusline()
" sets it to BufEnter, so the ordering is off: airline sets the statusline
" first, and then tagbar overwrites it, so this detects that and changes it
" back to the airline statusline.
if match(&statusline, '^%!Tagbar') >= 0
if exists('#airline') && match(&statusline, '^%!Tagbar') >= 0
call airline#update_statusline()
endif
endfunction