mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -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
|
||||
set modelines=0
|
||||
if a:0
|
||||
silent noautocmd edit!
|
||||
silent keepjumps noautocmd edit!
|
||||
else
|
||||
silent edit!
|
||||
silent keepjumps edit!
|
||||
endif
|
||||
finally
|
||||
let &modelines = modelines
|
||||
|
||||
Reference in New Issue
Block a user