Merge pull request #788 from toupeira/patch-1

Remove trailing slashes in unique_tail formatter
This commit is contained in:
Bailey Ling 2015-07-08 22:28:28 -04:00
commit cdc6d98a09
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