fix undotree override bleeding over to the main.

This commit is contained in:
Bailey Ling 2013-08-24 03:16:14 +00:00
parent 98eecd7ae2
commit 2cfab73f1b

View File

@ -3,10 +3,12 @@
function! airline#extensions#undotree#apply(...)
if exists('t:undotree')
if &ft == 'undotree' && exists('*t:undotree.GetStatusLine')
call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}')
else
call airline#extensions#apply_left_override('undotree', '%f')
if &ft == 'undotree'
if exists('*t:undotree.GetStatusLine')
call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}')
else
call airline#extensions#apply_left_override('undotree', '%f')
endif
endif
if &ft == 'diff' && exists('*t:diffpanel.GetStatusLine')