fix undotree override bleeding over to the main.
This commit is contained in:
parent
98eecd7ae2
commit
2cfab73f1b
@ -3,11 +3,13 @@
|
|||||||
|
|
||||||
function! airline#extensions#undotree#apply(...)
|
function! airline#extensions#undotree#apply(...)
|
||||||
if exists('t:undotree')
|
if exists('t:undotree')
|
||||||
if &ft == 'undotree' && exists('*t:undotree.GetStatusLine')
|
if &ft == 'undotree'
|
||||||
|
if exists('*t:undotree.GetStatusLine')
|
||||||
call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}')
|
call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}')
|
||||||
else
|
else
|
||||||
call airline#extensions#apply_left_override('undotree', '%f')
|
call airline#extensions#apply_left_override('undotree', '%f')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if &ft == 'diff' && exists('*t:diffpanel.GetStatusLine')
|
if &ft == 'diff' && exists('*t:diffpanel.GetStatusLine')
|
||||||
call airline#extensions#apply_left_override('diff', '%{t:diffpanel.GetStatusLine()}')
|
call airline#extensions#apply_left_override('diff', '%{t:diffpanel.GetStatusLine()}')
|
||||||
|
Loading…
Reference in New Issue
Block a user