mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-24 09:24:15 +08:00
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
|
||||
|
||||
function! s:airline_refresh()
|
||||
if !exists("#airline")
|
||||
" disabled
|
||||
return
|
||||
endif
|
||||
let nomodeline=''
|
||||
if v:version > 703 || v:version == 703 && has("patch438")
|
||||
let nomodeline = '<nomodeline>'
|
||||
|
|
Loading…
Reference in New Issue
Block a user