tabline: add buffer number to unique_tail formmater

fixes #1987
This commit is contained in:
Christian Brabandt 2019-10-25 17:20:34 +02:00
parent 62ec219601
commit a0e9b383c6
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function! airline#extensions#tabline#formatters#unique_tail#format(bufnr, buffer
for nr in a:buffers
let name = bufname(nr)
if empty(name)
let map[nr] = '[No Name]'
let map[nr] = airline#extensions#tabline#formatters#default#wrap_name(nr, '[No Name]')
else
let tail = fnamemodify(name, ':s?/\+$??:t')
if has_key(tails, tail)