Remove trailing slashes when getting path tail

This commit is contained in:
Markus Koller 2015-06-04 18:14:06 +03:00
parent 67de5f2257
commit 312f847e73
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
if empty(name)
let map[nr] = '[No Name]'
else
let tail = fnamemodify(name, ':t')
let tail = fnamemodify(name, ':s?/\+$??:t')
if has_key(tails, tail)
let duplicates[nr] = nr
endif