mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 02:52:15 +08: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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user