vim9: finish early for legacy Vims

fixes #2382
This commit is contained in:
Christian Brabandt 2021-05-08 09:18:51 +02:00
parent 19360bac63
commit 7e295c859f
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
3 changed files with 3 additions and 3 deletions

View File

@ -265,10 +265,8 @@ if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0) == 0
endif
return group
endfunction
finish
else
" Vim9 Script implementation
def s:toggle_off(): void
airline#extensions#tabline#autoshow#off()
airline#extensions#tabline#tabs#off()

View File

@ -43,6 +43,7 @@ if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0) == 0
endif
return _
endfunction
finish
else
" Vim9 Script implementation
def airline#extensions#tabline#formatters#default#format(bufnr: number, buffers: list<number>): string

View File

@ -80,6 +80,7 @@ if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0) == 0
let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ]
endif
endfunction
finish
else
" New Vim9 Script Implementation
def airline#themes#generate_color_map(sect1: list<any>, sect2: list<any>, sect3: list<any>): dict<any>