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 d926e3beb4779a5f28a1bbadceb98bd4aba73eca (tree)
parent 40872a9555b7a04d0eb8dc812ca7d054118fdc05
Author: Tim Pope <code@tpope.net>
Date:   Sun, 26 Jan 2020 10:37:34 -0500

Try to wipe out temp buffer from :read

Also try to preserve marks.

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1593,9 +1593,12 @@ 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 'keepalt $read ++edit' s:fnameescape(temp) - silent keepjumps 1delete _ + silent exe 'lockmarks keepalt 0read ++edit' s:fnameescape(temp) + silent keepjumps $delete _ call delete(temp) + if s:cpath(fnamemodify(bufname('$'), ':p'), temp) + silent! execute bufnr('$') . 'bwipeout' + endif endfunction function! s:QueryLog(refspec) abort