From c1fbea46bc85b1ed659d7ff03f6ee0d7bb4b55b1 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 4 Jan 2016 22:42:33 +0100 Subject: [PATCH] autochdir option is only available in big builds --- autoload/airline/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index f8e2963..0871094 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -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'])