mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Fix navigation maps like ~ in commit
This commit is contained in:
@@ -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 =~# '^$\|^[.:]/$'
|
||||
|
||||
Reference in New Issue
Block a user