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 f04a2275dbe525df5e0a4dcdfb368d768850f8dd (tree)
parent b714adbc51946e32c976a7db50a694ef61f947f7
Author: Tim Pope <code@tpope.net>
Date:   Wed, 21 Aug 2019 15:09:30 -0500

Remove feedkeys() contortions in :Gdiffsplit

Closes https://github.com/tpope/vim-fugitive/issues/1313

Diffstat:
Mautoload/fugitive.vim | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -4537,9 +4537,8 @@ function! s:Diff(autodir, keepfocus, mods, ...) abort let w:fugitive_diff_restore = restore let winnr = winnr() if getwinvar('#', '&diff') - exe back - if !a:keepfocus - call feedkeys(winnr."\<C-W>w", 'n') + if a:keepfocus + exe back endif endif return post