mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 22:15:28 +02:00
hunks: do not add trailing whitespace when branch extension is disabled
fixes #2177
This commit is contained in:
parent
767107070e
commit
f655add4e9
@ -118,6 +118,11 @@ function! airline#extensions#hunks#get_hunks() abort
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
if index(airline#extensions#get_loaded_extensions(), 'branch') == -1 && string[-1:] == ' '
|
||||||
|
" branch extension not loaded, skip trailing whitespace
|
||||||
|
let string = string[0:-2]
|
||||||
|
endif
|
||||||
|
|
||||||
let b:airline_hunks = string
|
let b:airline_hunks = string
|
||||||
let b:airline_changenr = b:changedtick
|
let b:airline_changenr = b:changedtick
|
||||||
let s:airline_winwidth = airline#util#winwidth()
|
let s:airline_winwidth = airline#util#winwidth()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user