mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 22:08:50 +08:00
branch: Remove spurious dirty var
This commit is contained in:
parent
28bebd35ea
commit
9f193de600
|
@ -279,7 +279,6 @@ function! airline#extensions#branch#get_head()
|
||||||
let minwidth = empty(get(b:, 'airline_hunks', '')) ? 14 : 7
|
let minwidth = empty(get(b:, 'airline_hunks', '')) ? 14 : 7
|
||||||
let head = airline#util#shorten(head, winwidth, minwidth)
|
let head = airline#util#shorten(head, winwidth, minwidth)
|
||||||
let symbol = get(g:, 'airline#extensions#branch#symbol', g:airline_symbols.branch)
|
let symbol = get(g:, 'airline#extensions#branch#symbol', g:airline_symbols.branch)
|
||||||
let dirty = get(b:, 'airline_branch_dirty', '')
|
|
||||||
return empty(head)
|
return empty(head)
|
||||||
\ ? get(g:, 'airline#extensions#branch#empty_message', '')
|
\ ? get(g:, 'airline#extensions#branch#empty_message', '')
|
||||||
\ : printf('%s%s', empty(symbol) ? '' : symbol.(g:airline_symbols.space), head)
|
\ : printf('%s%s', empty(symbol) ? '' : symbol.(g:airline_symbols.space), head)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user