mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Don't break jump list when loading buffer
Closes https://github.com/tpope/vim-fugitive/issues/1124
This commit is contained in:
@@ -1297,9 +1297,9 @@ function! s:ReplaceCmd(cmd, ...) abort
|
|||||||
try
|
try
|
||||||
set modelines=0
|
set modelines=0
|
||||||
if a:0
|
if a:0
|
||||||
silent noautocmd edit!
|
silent keepjumps noautocmd edit!
|
||||||
else
|
else
|
||||||
silent edit!
|
silent keepjumps edit!
|
||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
let &modelines = modelines
|
let &modelines = modelines
|
||||||
|
|||||||
Reference in New Issue
Block a user