From b9ea3efdf858d8ba970fe3cdd03e46803aeaa354 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 5 Jan 2019 01:56:46 -0500 Subject: [PATCH] Fix navigation maps like ~ in commit --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 15b5b33..e878698 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -623,7 +623,7 @@ function! fugitive#Path(url, ...) abort let file = '/.git'.url[strlen(dir) : -1] elseif len(tree) && s:cpath(url[0 : len(tree)]) ==# s:cpath(tree . '/') let file = url[len(tree) : -1] - elseif s:cpath(url) ==# s:cpath(tree) || len(argdir) && empty(file) + elseif s:cpath(url) ==# s:cpath(tree) let file = '/' endif if empty(file) && a:1 =~# '^$\|^[.:]/$'