mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
Fix function name mutilated by search and replace
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user