From 73146e3e73b0d009a4271ed3ed2e034ae3b9a86d Mon Sep 17 00:00:00 2001 From: Joshua Rubin Date: Tue, 22 Mar 2016 12:14:47 -0600 Subject: [PATCH] Add support for getting tab title from t:title Uses `gettabvar` to get tab name. --- autoload/airline/extensions/tabline.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 05053a5b..af03c62b 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -131,6 +131,10 @@ function! airline#extensions#tabline#title(n) let title = TabooTabTitle(a:n) endif + if empty(title) && exists('*gettabvar') + let title = gettabvar(a:n, 'title') + endif + if empty(title) let buflist = tabpagebuflist(a:n) let winnr = tabpagewinnr(a:n)