disable refresh function, if airline has been disabled

fixes #1213
This commit is contained in:
Christian Brabandt 2016-07-24 09:58:52 +02:00
parent 4d0c4f6b1e
commit 62eb44a9d6
1 changed files with 4 additions and 0 deletions

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>'