mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-09-20 18:23:11 +08:00
tabline: prepare for vim9script implementation
This commit is contained in:
@@ -11,6 +11,9 @@ endif
|
|||||||
let s:ctrlspace = get(g:, 'CtrlSpaceLoaded', 0)
|
let s:ctrlspace = get(g:, 'CtrlSpaceLoaded', 0)
|
||||||
let s:tabws = get(g:, 'tabws_loaded', 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)
|
function! airline#extensions#tabline#init(ext)
|
||||||
if has('gui_running')
|
if has('gui_running')
|
||||||
set guioptions-=e
|
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('$')))
|
call a:dict.add_section_spaced('airline_tabmod', printf('%s %d/%d', "tab", tabpagenr(), tabpagenr('$')))
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
else
|
||||||
|
" Vim9 Script implementation
|
||||||
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user