mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-21 04:54:45 +02:00
Fix fugitiveline when file is also branch name
This commit is contained in:
parent
b790fd2120
commit
66e49d9a15
@ -20,7 +20,7 @@ function! airline#extensions#fugitiveline#bufname()
|
|||||||
try
|
try
|
||||||
let buffer = fugitive#buffer()
|
let buffer = fugitive#buffer()
|
||||||
if buffer.type('blob')
|
if buffer.type('blob')
|
||||||
let b:fugitive_name = buffer.repo().translate(buffer.path())
|
let b:fugitive_name = buffer.repo().translate(buffer.path('/'))
|
||||||
endif
|
endif
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user