mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
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:
@@ -216,7 +216,7 @@ function! airline#util#is_popup_window(winnr)
|
|||||||
if exists('*win_gettype')
|
if exists('*win_gettype')
|
||||||
return win_gettype(a:winnr) ==# 'popup' || win_gettype(a:winnr) ==# 'autocmd'
|
return win_gettype(a:winnr) ==# 'popup' || win_gettype(a:winnr) ==# 'autocmd'
|
||||||
else
|
else
|
||||||
return getwinvar(a:winnr, '&buftype', '') ==# 'popup'
|
return airline#util#getwinvar(a:winnr, '&buftype', '') ==# 'popup'
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user