From ff058bf5b7a2c4f21ea44c2e8abfc0e943c5f6e5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 18 Aug 2019 07:46:26 -0400 Subject: [PATCH] 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 --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 411662d..c7acd03 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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')