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 42408d6a2e62f1499e192f0eeb9a7dae502874ff (tree)
parent 3383badda5e2fd3ad9536f90b75e788af4931c0f
Author: Tim Pope <code@tpope.net>
Date:   Thu,  3 Jan 2019 16:06:29 -0500

Don't break jump list when loading buffer

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

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1297,9 +1297,9 @@ function! s:ReplaceCmd(cmd, ...) abort try set modelines=0 if a:0 - silent noautocmd edit! + silent keepjumps noautocmd edit! else - silent edit! + silent keepjumps edit! endif finally let &modelines = modelines