More idiomatic line number navigation

This commit is contained in:
Andy Stewart
2019-11-25 12:14:38 +00:00
parent bced2175f8
commit c31581c25b

View File

@@ -528,7 +528,7 @@ function! GitGutterNextHunkCycle()
let line = line('.')
silent! GitGutterNextHunk
if line('.') == line
normal! 1G
1
GitGutterNextHunk
endif
endfunction
@@ -556,7 +556,7 @@ function! NextHunkAllBuffers()
return
endif
if !empty(GitGutterGetHunks())
normal! 1G
1
GitGutterNextHunk
return
endif