Add support for getting tab title from t:title

Uses `gettabvar` to get tab name.
This commit is contained in:
Joshua Rubin 2016-03-22 12:14:47 -06:00
parent 410429a95c
commit 73146e3e73
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ function! airline#extensions#tabline#title(n)
let title = TabooTabTitle(a:n) let title = TabooTabTitle(a:n)
endif endif
if empty(title) && exists('*gettabvar')
let title = gettabvar(a:n, 'title')
endif
if empty(title) if empty(title)
let buflist = tabpagebuflist(a:n) let buflist = tabpagebuflist(a:n)
let winnr = tabpagewinnr(a:n) let winnr = tabpagewinnr(a:n)