Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move screenshots

  • Loading branch information...
commit a89a0d12521ffec585fe3e4c3fbce3939d7d8fd0 1 parent 88df24d
@agibsonsw authored
View
7 AndyEdits.py
@@ -248,8 +248,8 @@ def on_modified(self, view):
sel = view.sel()[0]
currA, currB = (sel.begin(), sel.end())
self.curr_line, _ = view.rowcol(currA)
- if not hasattr(self, 'prev_line'):
- # on first run
+ if not hasattr(self, 'prev_line') or self.prev_line is None:
+ # on first run, or just deleted an edit region
self.prev_line = self.curr_line
if currA > 0 and sel.empty():
# include the first character?
@@ -296,4 +296,5 @@ def on_selection_modified(self, view):
if not found_line:
edited.append(sublime.Region(self.lastx, self.lasty))
view.add_regions("edited_rgns", edited, ICONSCOPE, \
- ICON, sublime.HIDDEN | sublime.PERSISTENT)
+ ICON, sublime.HIDDEN | sublime.PERSISTENT)
+ print edited
View
0  edits1.png → Screenshots/edits1.png
File renamed without changes
View
0  edits2.png → Screenshots/edits2.png
File renamed without changes
View
0  edits3.png → Screenshots/edits3.png
File renamed without changes
View
0  edits4.png → Screenshots/edits4.png
File renamed without changes
View
BIN  Screenshots/edits5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Screenshots/edits6.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Screenshots/edits7.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.