fix getwinvar on older 7.3 builds. resolves #147.
This commit is contained in:
parent
03c08e819c
commit
88b910d959
@ -1,14 +1,14 @@
|
|||||||
" MIT License. Copyright (c) 2013 Bailey Ling.
|
" MIT License. Copyright (c) 2013 Bailey Ling.
|
||||||
" vim: et ts=2 sts=2 sw=2
|
" vim: et ts=2 sts=2 sw=2
|
||||||
|
|
||||||
if v:version >= 703
|
if v:version >= 704
|
||||||
function! airline#util#getwinvar(winnr, key, def)
|
function! airline#util#getwinvar(winnr, key, def)
|
||||||
return getwinvar(a:winnr, a:key, a:def)
|
return getwinvar(a:winnr, a:key, a:def)
|
||||||
endfunction
|
endfunction
|
||||||
else
|
else
|
||||||
function! airline#util#getwinvar(winnr, key, def)
|
function! airline#util#getwinvar(winnr, key, def)
|
||||||
let winvals = getwinvar(a:winnr, '')
|
let winvals = getwinvar(a:winnr, '')
|
||||||
return get(winvals, a:key, def)
|
return get(winvals, a:key, a:def)
|
||||||
endfunction
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user