add skipped symbol fix

This commit is contained in:
zdm 2013-12-22 05:17:01 +02:00
parent f6133e4fa1
commit 0714c35547

View File

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