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 2cf584f97d2d748b9673ea28585ab9f47125e322 (tree)
parent 26f6037de68254376cd062286aeeaa7db804a973
Author: Maksim Odnoletkov <odnoletkov@mail.ru>
Date:   Fri, 13 Sep 2019 00:57:52 +0100

Remove redundant jump when opening :Gstatus

Fixes https://github.com/tpope/vim-fugitive/issues/1333

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1603,7 +1603,7 @@ function! s:AddHeader(key, value) abort endwhile call append(before - 1, [a:key . ':' . (len(a:value) ? ' ' . a:value : '')]) if before == 1 && line('$') == 2 - silent 2delete _ + silent keepjumps 2delete _ endif endfunction