mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-04 00:33:45 +08:00
Add support for getting tab title from t:title
Uses `gettabvar` to get tab name.
This commit is contained in:
1 parent
410429a95c
commit
73146e3e73
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user