Fix function name mutilated by search and replace

This commit is contained in:
Tim Pope
2019-02-25 17:10:30 -05:00
parent 666c4abc12
commit 0171b2a5b0

View File

@@ -4303,7 +4303,7 @@ function! fugitive#MapJumps(...) abort
endif endif
endfunction endfunction
function! s:DoCfile(...) abort function! s:StatusCfile(...) abort
let tree = FugitiveTreeForGitDir(b:git_dir) let tree = FugitiveTreeForGitDir(b:git_dir)
let lead = s:cpath(tree, getcwd()) ? './' : tree . '/' let lead = s:cpath(tree, getcwd()) ? './' : tree . '/'
let info = s:StageInfo() let info = s:StageInfo()
@@ -4328,7 +4328,7 @@ function! s:DoCfile(...) abort
endfunction endfunction
function! fugitive#StatusCfile() abort 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) return empty(file) ? fugitive#Cfile() : s:fnameescape(file)
endfunction endfunction
@@ -4515,7 +4515,7 @@ endfunction
function! s:GF(mode) abort function! s:GF(mode) abort
try 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:/ catch /^fugitive:/
return 'echoerr v:errmsg' return 'echoerr v:errmsg'
endtry endtry