move branch variable into the extension

This commit is contained in:
Bailey Ling 2016-01-29 09:29:40 -05:00
parent 1887b782e3
commit ce44577f1b
2 changed files with 2 additions and 1 deletions

View File

@ -140,4 +140,5 @@ function! airline#extensions#branch#init(ext)
autocmd BufReadPost * unlet! b:airline_file_in_root
autocmd CursorHold,ShellCmdPost,CmdwinLeave * unlet! b:airline_head
autocmd User AirlineBeforeRefresh unlet! b:airline_head
endfunction

View File

@ -103,7 +103,7 @@ function! s:airline_theme(...)
endfunction
function! s:airline_refresh()
unlet! b:airline_head
silent doautocmd User AirlineBeforeRefresh
call airline#load_theme()
call airline#update_statusline()
endfunction