Always enable airline by setting laststatus=2

Previously the user was expected to set 'laststatus' himself to 2 if he
wanted to have airline be shown by default.

However it doesn't make much sense to have airline installed but not
display the statusline. Therefore, set the 'laststatus' to 2, if it
isn't set to it already.
This commit is contained in:
Christian Brabandt 2017-07-02 20:42:32 +02:00
parent 4f43e5c93d
commit b78c2ec475
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ function! s:airline_toggle()
\ | call airline#load_theme()
augroup END
if &laststatus < 2
set laststatus=2
endif
if s:airline_initialized
call s:on_window_changed()
endif