Merge pull request #1767 from tpope/fugitive-real-path

Update to new Fugitive real path API
This commit is contained in:
Christian Brabandt 2018-07-23 08:11:18 +02:00 committed by GitHub
commit 964f53a418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ function! airline#extensions#fugitiveline#bufname()
if !exists('b:fugitive_name')
let b:fugitive_name = ''
try
if bufname('%') =~? '^fugitive:' && exists('*FugitivePath')
let b:fugitive_name = FugitivePath()
if bufname('%') =~? '^fugitive:' && exists('*FugitiveReal')
let b:fugitive_name = FugitiveReal(bufname('%'))
elseif exists('b:git_dir')
let buffer = fugitive#buffer()
if buffer.type('blob')