mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Fix restoring of $GIT_INDEX_FILE
This commit is contained in:
@@ -1293,7 +1293,7 @@ function! s:ReplaceCmd(cmd,...) abort
|
||||
finally
|
||||
let &autowrite = aw
|
||||
if exists('old_index')
|
||||
let $GIT_INDEX_FILE = 'old_index'
|
||||
let $GIT_INDEX_FILE = old_index
|
||||
endif
|
||||
endtry
|
||||
silent exe 'keepalt file '.tmp
|
||||
|
||||
Reference in New Issue
Block a user