add skipped symbol fix

This commit is contained in:
zdm 2013-12-22 05:17:01 +02:00
parent f6133e4fa1
commit 0714c35547
1 changed files with 7 additions and 0 deletions

View File

@ -99,11 +99,13 @@ function! airline#extensions#tabline#formatters#unique_tail_improved(bufnr, buff
for token1 in reverse(path)
if !token1['duplicated'] && len(buf_name) > 1
call insert(buf_name, skip_symbol)
let has_skipped = 0
break
endif
if has_uniq == 1
call insert(buf_name, skip_symbol)
let has_skipped = 0
break
endif
@ -121,6 +123,11 @@ function! airline#extensions#tabline#formatters#unique_tail_improved(bufnr, buff
let has_uniq = 1
endif
endfor
if has_skipped == 1
call insert(buf_name, skip_symbol)
endif
return s:wrap_name(a:bufnr, join(buf_name, '/'))
else
return airline#extensions#tabline#formatters#default(a:bufnr, a:buffers)