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 ff058bf5b7a2c4f21ea44c2e8abfc0e943c5f6e5 (tree)
parent ed6f4256fcdd8ee6bcaf9c7aa5879f559463a9b3
Author: Tim Pope <code@tpope.net>
Date:   Sun, 18 Aug 2019 07:46:26 -0400

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

Diffstat:
Mautoload/fugitive.vim | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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')