From f6133e4fa144fcaaa5792e9c96d57a9b45cc3d06 Mon Sep 17 00:00:00 2001 From: zdm Date: Sun, 22 Dec 2013 04:03:07 +0200 Subject: [PATCH] dos path fixed --- autoload/airline/extensions/tabline/formatters.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/formatters.vim b/autoload/airline/extensions/tabline/formatters.vim index 4b4caeee..573fb2e3 100644 --- a/autoload/airline/extensions/tabline/formatters.vim +++ b/autoload/airline/extensions/tabline/formatters.vim @@ -78,7 +78,7 @@ function! airline#extensions#tabline#formatters#unique_tail_improved(bufnr, buff if do_deduplicate == 1 let path = [] let token_index = 0 - for token in reverse(split(fnamemodify(bufname(a:bufnr), ':p:.:h'), '/')) + for token in reverse(split(substitute(fnamemodify(bufname(a:bufnr), ':p:.:h'), '\\', '/', 'g'), '/')) if token == '.' | break | endif let duplicated = 0 let uniq = 1