motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 8b3cd645fd11767efb42c711097fab09def6a86f (tree)
parent ecb2157d7ed9526157b05b9fe19019f6c1b00b30
Author: Tim Pope <code@tpope.net>
Date:   Sat,  9 Jan 2010 19:17:43 -0500

Fix issue with status reloading

Diffstat:
Mplugin/fugitive.vim | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1059,18 +1059,19 @@ endfunction function! s:BufReadIndex() if !exists('b:fugitive_display_format') - let b:fugitive_display_format = filereadable(expand('<afile>').'.lock') + let b:fugitive_display_format = filereadable(expand('%').'.lock') endif let b:fugitive_display_format = b:fugitive_display_format % 2 let b:fugitive_type = 'index' try let b:git_dir = s:repo().dir() setlocal noro ma - if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('<amatch>:p') + if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p') let indexspec = '' else - let indexspec = 'GIT_INDEX_FILE='.expand('<afile>').' ' + let indexspec = 'GIT_INDEX_FILE='.expand('%').' ' endif + let g:indexspec = indexspec if b:fugitive_display_format call s:ReplaceCmd(indexspec.s:repo().git_command('ls-files','--stage')) set ft=git nospell