Rename FugitiveFilename() to FugitivePath()

This commit is contained in:
Tim Pope
2018-06-27 17:13:06 -04:00
parent 2a817bb53a
commit 1988518904
2 changed files with 3 additions and 3 deletions

View File

@@ -138,10 +138,10 @@ function! FugitiveHead(...) abort
return fugitive#repo().head(a:0 ? a:1 : 0)
endfunction
function! FugitiveFilename(...) abort
function! FugitivePath(...) abort
let file = fnamemodify(a:0 ? a:1 : @%, ':p')
if file =~? '^fugitive:'
return fugitive#Filename(file)
return fugitive#Path(file)
else
return file
endif