mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-05 06:34:13 +08:00
vim9: Needs at least version 8.2.22844
This commit is contained in:
@@ -44,7 +44,7 @@ function! airline#extensions#tabline#add_tab_label(dict)
|
||||
endfunction
|
||||
|
||||
|
||||
if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0) == 0)
|
||||
if !exists(":def") || !airline#util#has_vim9_script()
|
||||
|
||||
" Legacy Vim Script Implementation
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0) == 0)
|
||||
if !exists(":def") || !airline#util#has_vim9_script()
|
||||
function! airline#extensions#tabline#formatters#default#format(bufnr, buffers)
|
||||
let fnametruncate = get(g:, 'airline#extensions#tabline#fnametruncate', 0)
|
||||
let fmod = get(g:, 'airline#extensions#tabline#fnamemod', ':~:.')
|
||||
|
||||
Reference in New Issue
Block a user