Merge pull request #910 from chrisbra/fix_908

autochdir is only available with big builds
This commit is contained in:
Bailey Ling 2016-01-05 22:19:30 -05:00
commit ca6ab34e3c

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'])