mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 22:15:28 +02:00
tabline: prepare for vim9script implementation
This commit is contained in:
parent
caaa553ce9
commit
e6bd342293
@ -11,6 +11,9 @@ endif
|
||||
let s:ctrlspace = get(g:, 'CtrlSpaceLoaded', 0)
|
||||
let s:tabws = get(g:, 'tabws_loaded', 0)
|
||||
|
||||
unlet! g:airline_experimental
|
||||
if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0)==0)
|
||||
|
||||
function! airline#extensions#tabline#init(ext)
|
||||
if has('gui_running')
|
||||
set guioptions-=e
|
||||
@ -265,3 +268,6 @@ function! airline#extensions#tabline#add_tab_label(dict)
|
||||
call a:dict.add_section_spaced('airline_tabmod', printf('%s %d/%d', "tab", tabpagenr(), tabpagenr('$')))
|
||||
endif
|
||||
endfunction
|
||||
else
|
||||
" Vim9 Script implementation
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user