From 56197d510468f405c630a4a48b1bb207f83d14ac Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 17 Dec 2018 22:23:40 +0100 Subject: [PATCH] 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 --- plugin/airline.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index c91ff20..2f776ca 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -88,6 +88,7 @@ function! s:airline_toggle() call airline#util#doautocmd('AirlineToggledOff') else + call s:init() let s:stl = &statusline augroup airline autocmd!