From 66e49d9a15b02241ec74e648d4deb5378c03225f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 27 Jun 2018 18:03:34 -0400 Subject: [PATCH] Fix fugitiveline when file is also branch name --- autoload/airline/extensions/fugitiveline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/fugitiveline.vim b/autoload/airline/extensions/fugitiveline.vim index 744b903..e161817 100644 --- a/autoload/airline/extensions/fugitiveline.vim +++ b/autoload/airline/extensions/fugitiveline.vim @@ -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