mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 03:18:56 +08:00
add skipped symbol fix
This commit is contained in:
parent
f6133e4fa1
commit
0714c35547
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user