When calling :AirlineRefresh, also update branch name

fixes #584
This commit is contained in:
Christian Brabandt 2016-01-28 09:49:09 +01:00
parent 3cd278ad08
commit 70ca735af0
1 changed files with 7 additions and 1 deletions

View File

@ -102,10 +102,16 @@ function! s:airline_theme(...)
endif
endfunction
function! s:airline_refresh()
unlet! b:airline_head
call airline#load_theme()
call airline#update_statusline()
endfunction
command! -bar -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>)
command! -bar AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
command! -bar AirlineToggle call s:airline_toggle()
command! -bar AirlineRefresh call airline#load_theme() | call airline#update_statusline()
command! -bar AirlineRefresh ccall s:airline_refresh()
call airline#init#bootstrap()
call s:airline_toggle()