Merge pull request #1216 from chrisbra/skip_empty_sections
disable refresh function, if airline has been disabled
This commit is contained in:
commit
64188c395f
|
@ -119,6 +119,10 @@ function! s:airline_theme(...)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:airline_refresh()
|
function! s:airline_refresh()
|
||||||
|
if !exists("#airline")
|
||||||
|
" disabled
|
||||||
|
return
|
||||||
|
endif
|
||||||
let nomodeline=''
|
let nomodeline=''
|
||||||
if v:version > 703 || v:version == 703 && has("patch438")
|
if v:version > 703 || v:version == 703 && has("patch438")
|
||||||
let nomodeline = '<nomodeline>'
|
let nomodeline = '<nomodeline>'
|
||||||
|
|
Loading…
Reference in New Issue