Make plugin reloadable

there was a call to s:init() missing in the toggle function.
Without it, it wouldn't reload correctly, since the s:initialized
variable would never be set to 1 again. So load it when setting up
everything correctly.

fixes #1842
This commit is contained in:
Christian Brabandt 2018-12-17 22:23:40 +01:00
parent c0f96df97f
commit 56197d5104
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -88,6 +88,7 @@ function! s:airline_toggle()
call airline#util#doautocmd('AirlineToggledOff')
else
call s:init()
let s:stl = &statusline
augroup airline
autocmd!