From e5a51f9fcac9ce235bf4c96b7b00c94eed4d7f31 Mon Sep 17 00:00:00 2001 From: Thomas Faivre Date: Thu, 18 Jan 2018 18:16:09 +0100 Subject: [PATCH] quickfix: fix options initialization Options default value is hard coded making them override user values. Signed-off-by: Thomas Faivre --- autoload/airline/extensions/quickfix.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/quickfix.vim b/autoload/airline/extensions/quickfix.vim index 86e958c..55504ea 100644 --- a/autoload/airline/extensions/quickfix.vim +++ b/autoload/airline/extensions/quickfix.vim @@ -3,8 +3,13 @@ scriptencoding utf-8 -let g:airline#extensions#quickfix#quickfix_text = 'Quickfix' -let g:airline#extensions#quickfix#location_text = 'Location' +if !exists('g:airline#extensions#quickfix#quickfix_text') + let g:airline#extensions#quickfix#quickfix_text = 'Quickfix' +endif + +if !exists('g:airline#extensions#quickfix#location_text') + let g:airline#extensions#quickfix#location_text = 'Location' +endif function! airline#extensions#quickfix#apply(...) if &buftype == 'quickfix'