Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DavidLGoldberg/GitGutter into dg
Browse files Browse the repository at this point in the history
  • Loading branch information
jisaacks committed Mar 23, 2013
2 parents 6c7283d + 51f4a96 commit c3ae046
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions git_gutter_change.py
Expand Up @@ -22,14 +22,14 @@ def run(self):
inserted = self.lines_to_blocks(inserted)
modified = self.lines_to_blocks(modified)
all_changes = sorted(inserted + modified + deleted)
if all_changes:
row, col = view.rowcol(view.sel()[0].begin())

row, col = view.rowcol(view.sel()[0].begin())
current_row = row + 1

line = self.jump(all_changes, current_row)

current_row = row + 1

line = self.jump(all_changes, current_row)

self.window.active_view().run_command("goto_line", {"line": line})
self.window.active_view().run_command("goto_line", {"line": line})

class GitGutterNextChangeCommand(GitGutterBaseChangeCommand):
def jump(self, all_changes, current_row):
Expand Down

0 comments on commit c3ae046

Please sign in to comment.