From 59e4ab49ceb9377072ee4a8e88f0d9202d6d4682 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Fri, 13 Sep 2013 19:14:56 +0000 Subject: [PATCH] fix windows path separator parsing (#251). --- autoload/airline/extensions/branch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 4edeedd..9da7b68 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -40,7 +40,7 @@ function! s:check_in_path() if !exists('b:airline_branch_path') let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', '')) let bufferpath = resolve(fnamemodify(expand('%'), ':p:h')) - let root = fnamemodify(root, ':h') + let root = expand(fnamemodify(root, ':h')) let b:airline_file_in_root = stridx(bufferpath, root) > -1 endif return b:airline_file_in_root