From 82f2841bdf31c1ba83c17aa529c09451a9448fab Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 28 Nov 2021 15:36:44 -0500 Subject: [PATCH] Fix gf error in commit message outside of repository --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6b9ef03..e1625d9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7668,7 +7668,7 @@ endfunction function! s:StatusCfile(...) abort let tree = s:Tree() if empty(tree) - return '' + return [] endif let lead = s:cpath(tree, getcwd()) ? './' : tree . '/' if getline('.') =~# '^.\=\trenamed:.* -> '