mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-13 08:29:03 +08:00
Restore :checktime for :Gstatus delete
I assumed this was a naive attempt to reload the status buffer, when in fact it was concerned with reloading the deleted file.
This commit is contained in:
1 parent
4df6525284
commit
9c74c0d0a7
1 file changed
+1
-1
@@ -2283,7 +2283,7 @@ function! s:StageDelete(lnum, count) abort
|
|||||||
endif
|
endif
|
||||||
exe s:ReloadStatus()
|
exe s:ReloadStatus()
|
||||||
let @@ = hash
|
let @@ = hash
|
||||||
return 'redraw|echomsg ' .
|
return 'checktime|redraw|echomsg ' .
|
||||||
\ string('To restore, :Git cat-file blob '.hash[0:6].' > '.info.filename)
|
\ string('To restore, :Git cat-file blob '.hash[0:6].' > '.info.filename)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user