mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Fix gf error in commit message outside of repository
This commit is contained in:
@@ -7668,7 +7668,7 @@ endfunction
|
|||||||
function! s:StatusCfile(...) abort
|
function! s:StatusCfile(...) abort
|
||||||
let tree = s:Tree()
|
let tree = s:Tree()
|
||||||
if empty(tree)
|
if empty(tree)
|
||||||
return ''
|
return []
|
||||||
endif
|
endif
|
||||||
let lead = s:cpath(tree, getcwd()) ? './' : tree . '/'
|
let lead = s:cpath(tree, getcwd()) ? './' : tree . '/'
|
||||||
if getline('.') =~# '^.\=\trenamed:.* -> '
|
if getline('.') =~# '^.\=\trenamed:.* -> '
|
||||||
|
|||||||
Reference in New Issue
Block a user