Permalink
Browse files

Almost perfect!

  • Loading branch information...
1 parent 1c645f2 commit 1302f8067f2fc0c6e0e5f23357e978704ba16180 @agibsonsw committed Oct 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 AndyEdits.py
View
@@ -20,8 +20,8 @@
def showRegion(view, reg):
view.sel().clear()
- view.show(reg)
view.sel().add(reg)
+ view.show(reg)
def sameView(view_id):
if not view_id: return False
@@ -86,7 +86,7 @@ def run(self):
the_edits, locs = getFullEditList(vw, edited)
if the_edits:
the_edits.insert(0, "%s" % (vw.file_name() or "No filename"))
- locs.insert(0, (vw, sublime.Region(0, 0)))
+ locs.insert(0, (vw, vw.sel()[0]))
full_list += the_edits
self.locations += locs
if full_list:

0 comments on commit 1302f80

Please sign in to comment.