mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
More idiomatic line number navigation
This commit is contained in:
@@ -528,7 +528,7 @@ function! GitGutterNextHunkCycle()
|
|||||||
let line = line('.')
|
let line = line('.')
|
||||||
silent! GitGutterNextHunk
|
silent! GitGutterNextHunk
|
||||||
if line('.') == line
|
if line('.') == line
|
||||||
normal! 1G
|
1
|
||||||
GitGutterNextHunk
|
GitGutterNextHunk
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
@@ -556,7 +556,7 @@ function! NextHunkAllBuffers()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
if !empty(GitGutterGetHunks())
|
if !empty(GitGutterGetHunks())
|
||||||
normal! 1G
|
1
|
||||||
GitGutterNextHunk
|
GitGutterNextHunk
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user