From 45fe471b44900e37bf764870ca0c81409d4bce19 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 18 Aug 2010 22:14:50 -0400 Subject: [PATCH] Attempt to address GitHub issue #16 --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 26b45cb..1fd7039 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1365,7 +1365,7 @@ function! s:BufReadIndex() if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p') let index = '' else - let index = expand('%') + let index = expand('%:p') endif if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('ls-files','--stage'),index)