vim 7.3 does not allow getwinvar with 3 args

use airline#util#getwinvar instead, fixes #1174
This commit is contained in:
Christian Brabandt 2016-05-22 21:26:34 +02:00
parent 70c16f4c46
commit 83b6dd11a8
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