Merge pull request #1175 from chrisbra/1174

vim 7.3 does not allow getwinvar with 3 args
This commit is contained in:
Christian Brabandt 2016-05-22 21:37:10 +02:00
commit 4d39cb6f20
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ function! airline#extensions#quickfix#init(ext)
endfunction
function! airline#extensions#quickfix#inactive_qf_window(...)
if getbufvar(a:2.bufnr, '&filetype') is# 'qf' && !empty(getwinvar(a:2.winnr, 'quickfix_title', ''))
if getbufvar(a:2.bufnr, '&filetype') is# 'qf' && !empty(airline#util#getwinvar(a:2.winnr, 'quickfix_title', ''))
call setwinvar(a:2.winnr, 'airline_section_c', '[%{get(w:, "quickfix_title", "")}] %f %m')
endif
endfunction