From 0171b2a5b064039b91acf75a1a3a76d5fde48db0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 25 Feb 2019 17:10:30 -0500 Subject: [PATCH] Fix function name mutilated by search and replace --- autoload/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b6292ae..6abc131 100644 --- 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