move branch variable into the extension
This commit is contained in:
parent
1887b782e3
commit
ce44577f1b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue