From 80e410c81a8d5348749c8a5c16bf8a740853419b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 2 Aug 2018 15:16:29 -0400 Subject: [PATCH] Fix :Gedit default from commit to work tree --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 594191d..633ab0d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -498,7 +498,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) + elseif s:cpath(url) ==# s:cpath(tree) || len(argdir) && empty(file) let file = '/' endif if empty(file) && a:1 =~# '^\%([.:]\=/\)\=$'