From 2cfab73f1ba854c06ef6c47149e863d2bdf13aa0 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sat, 24 Aug 2013 03:16:14 +0000 Subject: [PATCH] fix undotree override bleeding over to the main. --- autoload/airline/extensions/undotree.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/autoload/airline/extensions/undotree.vim b/autoload/airline/extensions/undotree.vim index 1f1e3acf..3de1712f 100644 --- a/autoload/airline/extensions/undotree.vim +++ b/autoload/airline/extensions/undotree.vim @@ -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')