From 2be030b7e8058fc074dab23282716ccd2bcb2748 Mon Sep 17 00:00:00 2001 From: Zekeriya Koc Date: Tue, 27 Aug 2013 10:40:29 +0300 Subject: [PATCH] file type check converted to pattern match so extension will be enabled for file types like python.django etc. --- autoload/airline/extensions/virtualenv.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/virtualenv.vim b/autoload/airline/extensions/virtualenv.vim index 4d2d246..1e7435e 100644 --- a/autoload/airline/extensions/virtualenv.vim +++ b/autoload/airline/extensions/virtualenv.vim @@ -6,7 +6,7 @@ function! airline#extensions#virtualenv#init(ext) endfunction function! airline#extensions#virtualenv#apply(...) - if &filetype == "python" + if &filetype =~ "python" call airline#extensions#append_to_section('x', ' '.g:airline_right_alt_sep.' %{virtualenv#statusline()}') endif endfunction