Update to new Fugitive real path API
This commit is contained in:
parent
4cc255a384
commit
a8ccef61ba
@ -18,8 +18,8 @@ function! airline#extensions#fugitiveline#bufname()
|
|||||||
if !exists('b:fugitive_name')
|
if !exists('b:fugitive_name')
|
||||||
let b:fugitive_name = ''
|
let b:fugitive_name = ''
|
||||||
try
|
try
|
||||||
if bufname('%') =~? '^fugitive:' && exists('*FugitivePath')
|
if bufname('%') =~? '^fugitive:' && exists('*FugitiveReal')
|
||||||
let b:fugitive_name = FugitivePath()
|
let b:fugitive_name = FugitiveReal(bufname('%'))
|
||||||
elseif exists('b:git_dir')
|
elseif exists('b:git_dir')
|
||||||
let buffer = fugitive#buffer()
|
let buffer = fugitive#buffer()
|
||||||
if buffer.type('blob')
|
if buffer.type('blob')
|
||||||
|
Loading…
Reference in New Issue
Block a user