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:
Shad 2022-09-26 15:01:40 +02:00 committed by GitHub
parent a71f9a6417
commit dba64a910d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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