Fix fugitiveline when file is also branch name

This commit is contained in:
Tim Pope 2018-06-27 18:03:34 -04:00
parent b790fd2120
commit 66e49d9a15

View File

@ -20,7 +20,7 @@ function! airline#extensions#fugitiveline#bufname()
try
let buffer = fugitive#buffer()
if buffer.type('blob')
let b:fugitive_name = buffer.repo().translate(buffer.path())
let b:fugitive_name = buffer.repo().translate(buffer.path('/'))
endif
catch
endtry