Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make jumping between changes loop back around

  • Loading branch information...
commit b639e094f0ac9feb008c0d13deb26c55bbb50793 1 parent 54eb786
@jisaacks authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 git_gutter_change.py
View
4 git_gutter_change.py
@@ -34,10 +34,10 @@ def run(self):
class GitGutterNextChangeCommand(GitGutterBaseChangeCommand):
def jump(self, all_changes, current_row):
return next((change for change in all_changes
- if change > current_row), current_row)
+ if change > current_row), all_changes[0])
class GitGutterPrevChangeCommand(GitGutterBaseChangeCommand):
def jump(self, all_changes, current_row):
return next((change for change in reversed(all_changes)
- if change < current_row), current_row)
+ if change < current_row), all_changes[-1])

1 comment on commit b639e09

Please sign in to comment.
Something went wrong with that request. Please try again.