From c00cd767d0efb5f878ffb6129e61192c71a7afe4 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 25 Jul 2013 13:58:48 +0000 Subject: [PATCH] fix statusline not getting updated with some plugins (#91). --- autoload/airline/extensions.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index a005b89..15e908b 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -29,7 +29,7 @@ function! airline#extensions#apply_window_overrides() if &ft == 'netrw' call s:override_left_only('netrw', '%f') elseif &ft == 'unite' - call s:override_left_only('Unite', unite#get_status_string()) + call s:override_left_only('Unite', '%{unite#get_status_string()}') elseif &ft == 'nerdtree' call s:override_left_only('NERD', '') elseif &ft == 'undotree' @@ -41,9 +41,9 @@ function! airline#extensions#apply_window_overrides() elseif &ft == 'tagbar' call s:override_left_only('Tagbar', '') elseif &ft == 'vimshell' - call s:override_left_only('vimshell', vimshell#get_status_string()) + call s:override_left_only('vimshell', '%{vimshell#get_status_string()}') elseif &ft == 'vimfiler' - call s:override_left_only('vimfiler', vimfiler#get_status_string()) + call s:override_left_only('vimfiler', '%{vimfiler#get_status_string()}') elseif &ft == 'minibufexpl' call s:override_left_only('MiniBufExplorer', '') endif