mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
Remove redundant jump when opening :Gstatus
Fixes https://github.com/tpope/vim-fugitive/issues/1333
This commit is contained in:
committed by
Tim Pope
parent
26f6037de6
commit
2cf584f97d
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user