config: allow to disable setting the statusline option

closes #2013
This commit is contained in:
Christian Brabandt
2019-12-13 09:59:45 +01:00
parent e395afed51
commit 5f9ae83f44
4 changed files with 26 additions and 6 deletions

View File

@@ -178,8 +178,10 @@ function! s:airline_toggle()
endif
augroup END
if &laststatus < 2
set laststatus=2
if !airline#util#stl_disabled()
if &laststatus < 2
set laststatus=2
endif
endif
if s:airline_initialized
call s:on_window_changed('Init')