mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
vim9: Needs at least version 8.2.22844
This commit is contained in:
@@ -214,3 +214,10 @@ function! airline#util#try_focusgained()
|
||||
return dt >= 1
|
||||
endfunction
|
||||
|
||||
function! airline#util#has_vim9_script()
|
||||
" Returns true, if Vim is new enough to understand vim9 script
|
||||
return (exists(":def") &&
|
||||
\ v:versionlong >= 8022844 &&
|
||||
\ get(g:, "airline_experimental", 0))
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user