mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Prevent alternate buffer change loading Fugitive buffer
This commit is contained in:
@@ -1560,7 +1560,7 @@ function! s:ReplaceCmd(cmd) abort
|
||||
if exec_error
|
||||
call s:throw((len(err) ? err : filereadable(temp) ? join(readfile(temp), ' ') : 'unknown error running ' . a:cmd))
|
||||
endif
|
||||
silent exe '$read ++edit' s:fnameescape(temp)
|
||||
silent exe 'keepalt $read ++edit' s:fnameescape(temp)
|
||||
silent keepjumps 1delete _
|
||||
call delete(temp)
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user