vim 7.3 does not allow getwinvar with 3 args
use airline#util#getwinvar instead, fixes #1174
This commit is contained in:
parent
70c16f4c46
commit
83b6dd11a8
|
@ -19,7 +19,7 @@ function! airline#extensions#quickfix#init(ext)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#quickfix#inactive_qf_window(...)
|
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')
|
call setwinvar(a:2.winnr, 'airline_section_c', '[%{get(w:, "quickfix_title", "")}] %f %m')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue