mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Fix diff after :Gwrite
This works around a bug in Vim that was fixed in patch 8.0.0421. Closes https://github.com/tpope/vim-fugitive/issues/1102 References https://github.com/tpope/vim-fugitive/pull/859
This commit is contained in:
@@ -4139,6 +4139,7 @@ function! s:WriteCommand(line1, line2, range, count, bang, mods, reg, arg, args)
|
||||
silent execute '1,'.last.'delete_'
|
||||
silent write!
|
||||
silent execute lnum
|
||||
diffupdate
|
||||
let did = 1
|
||||
finally
|
||||
if exists('restorewinnr')
|
||||
|
||||
Reference in New Issue
Block a user