Merge pull request #191 from zekzekus/master

file type check converted to pattern match
This commit is contained in:
Bailey Ling 2013-08-27 04:17:28 -07:00
commit 895743c13d
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function! airline#extensions#virtualenv#init(ext)
endfunction endfunction
function! airline#extensions#virtualenv#apply(...) 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()}') call airline#extensions#append_to_section('x', ' '.g:airline_right_alt_sep.' %{virtualenv#statusline()}')
endif endif
endfunction endfunction