tabline: Fix broken call to formatter

This commit is contained in:
Christian Brabandt 2019-02-02 21:57:15 +01:00
parent a30df884f4
commit 5415c5e6ec
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ endfunction
function! airline#extensions#tabline#tabs#tabnr_formatter(nr, i) abort
let formatter = get(g:, 'airline#extensions#tabline#tabnr_formatter', 'tabnr')
try
return airline#extensions#formatters#{formatter}#format(a:nr, a:i)
return airline#extensions#tabline#formatters#{formatter}#format(a:nr, a:i)
catch /^Vim\%((\a\+)\)\=:E117/ " catch E117, unknown function
" Function not found
return call(formatter, [a:nr, a:i])