windows path replaced

This commit is contained in:
zdm 2013-12-22 03:49:30 +02:00
parent 8d7c2ad830
commit 43c1636e36

View File

@ -78,7 +78,7 @@ function! airline#extensions#tabline#formatters#unique_tail_improved(bufnr, buff
if do_deduplicate == 1 if do_deduplicate == 1
let path = [] let path = []
let token_index = 0 let token_index = 0
for token in reverse(split(fnamemodify(bufname(a:bufnr), ':p:.:h'), '\')) for token in reverse(split(fnamemodify(bufname(a:bufnr), ':p:.:h'), '/'))
if token == '.' | break | endif if token == '.' | break | endif
let duplicated = 0 let duplicated = 0
let uniq = 1 let uniq = 1