mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 05:22:12 +08:00
Merge pull request #191 from zekzekus/master
file type check converted to pattern match
This commit is contained in:
commit
895743c13d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user