autochdir option is only available in big builds

This commit is contained in:
Christian Brabandt 2016-01-04 22:42:33 +01:00
parent 0138313656
commit c1fbea46bc
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ function! airline#init#sections()
let g:airline_section_b = airline#section#create(['hunks', 'branch'])
endif
if !exists('g:airline_section_c')
if &autochdir == 1
if exists("+autochdir") && &autochdir == 1
let g:airline_section_c = airline#section#create(['%<', 'path', spc, 'readonly'])
else
let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly'])