Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:DavidLGoldberg/GitGutter into dg

  • Loading branch information...
commit c3ae0468783f4ff7dce4a777fdd86cc9b87787a9 2 parents 6c7283d + 51f4a96
@jisaacks authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 git_gutter_change.py
View
12 git_gutter_change.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.