commit 0171b2a5b064039b91acf75a1a3a76d5fde48db0 (tree)
parent 666c4abc1299ef2a8975f58e37534fafe599b670
Author: Tim Pope <code@tpope.net>
Date: Mon, 25 Feb 2019 17:10:30 -0500
Fix function name mutilated by search and replace
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -4303,7 +4303,7 @@ function! fugitive#MapJumps(...) abort
endif
endfunction
-function! s:DoCfile(...) abort
+function! s:StatusCfile(...) abort
let tree = FugitiveTreeForGitDir(b:git_dir)
let lead = s:cpath(tree, getcwd()) ? './' : tree . '/'
let info = s:StageInfo()
@@ -4328,7 +4328,7 @@ function! s:DoCfile(...) abort
endfunction
function! fugitive#StatusCfile() abort
- let file = s:Generate(s:DoCfile()[0])
+ let file = s:Generate(s:StatusCfile()[0])
return empty(file) ? fugitive#Cfile() : s:fnameescape(file)
endfunction
@@ -4515,7 +4515,7 @@ endfunction
function! s:GF(mode) abort
try
- let results = &filetype ==# 'fugitive' ? s:DoCfile() : &filetype ==# 'gitcommit' ? [s:MessageCfile()] : s:cfile()
+ let results = &filetype ==# 'fugitive' ? s:StatusCfile() : &filetype ==# 'gitcommit' ? [s:MessageCfile()] : s:cfile()
catch /^fugitive:/
return 'echoerr v:errmsg'
endtry