Merge pull request #1216 from chrisbra/skip_empty_sections

disable refresh function, if airline has been disabled
This commit is contained in:
Christian Brabandt 2016-07-24 10:01:20 +02:00 committed by GitHub
commit 64188c395f

View File

@ -119,6 +119,10 @@ function! s:airline_theme(...)
endfunction
function! s:airline_refresh()
if !exists("#airline")
" disabled
return
endif
let nomodeline=''
if v:version > 703 || v:version == 703 && has("patch438")
let nomodeline = '<nomodeline>'