Fix check for absolute path in FugitiveGenerate()
This commit is contained in:
parent
6c89a3675b
commit
a877908acd
@ -89,7 +89,7 @@ function! FugitivePath(...) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FugitiveGenerate(...) abort
|
function! FugitiveGenerate(...) abort
|
||||||
if a:0 && s:shellslash(a:0) =~# '^\%(\a\a\+:\)\=\%(a:\)\=/\|^[~$]'
|
if a:0 && s:shellslash(a:1) =~# '^\%(\a\a\+:\)\=\%(a:\)\=/\|^[~$]'
|
||||||
return a:1
|
return a:1
|
||||||
endif
|
endif
|
||||||
return fugitive#repo(FugitiveGitDir(a:0 > 1 ? a:2 : -1)).translate(a:0 ? a:1 : '', 1)
|
return fugitive#repo(FugitiveGitDir(a:0 > 1 ? a:2 : -1)).translate(a:0 ? a:1 : '', 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user