From 88b910d959153c2e964ae34df798810918b9e7b0 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 18 Aug 2013 04:50:48 +0000 Subject: [PATCH] fix getwinvar on older 7.3 builds. resolves #147. --- autoload/airline/util.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/util.vim b/autoload/airline/util.vim index 9311111b..c60249e4 100644 --- a/autoload/airline/util.vim +++ b/autoload/airline/util.vim @@ -1,14 +1,14 @@ " MIT License. Copyright (c) 2013 Bailey Ling. " vim: et ts=2 sts=2 sw=2 -if v:version >= 703 +if v:version >= 704 function! airline#util#getwinvar(winnr, key, def) return getwinvar(a:winnr, a:key, a:def) endfunction else function! airline#util#getwinvar(winnr, key, def) let winvals = getwinvar(a:winnr, '') - return get(winvals, a:key, def) + return get(winvals, a:key, a:def) endfunction endif