mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 20:54:26 +08:00
Fix fugitiveline when file is also branch name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user