From 42408d6a2e62f1499e192f0eeb9a7dae502874ff Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 3 Jan 2019 16:06:29 -0500 Subject: [PATCH] Don't break jump list when loading buffer Closes https://github.com/tpope/vim-fugitive/issues/1124 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 847f790..e014f42 100644 --- 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