Update util.vim
using getwinvar directly with 7.3 version of vim display the following error E118: Too many arguments for function: getwinvar E15: Invalid expression: getwinvar(a:winnr, '&buftype', '') ==# 'popup'
This commit is contained in:
parent
a71f9a6417
commit
dba64a910d
|
@ -216,7 +216,7 @@ function! airline#util#is_popup_window(winnr)
|
|||
if exists('*win_gettype')
|
||||
return win_gettype(a:winnr) ==# 'popup' || win_gettype(a:winnr) ==# 'autocmd'
|
||||
else
|
||||
return getwinvar(a:winnr, '&buftype', '') ==# 'popup'
|
||||
return airline#util#getwinvar(a:winnr, '&buftype', '') ==# 'popup'
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue