Permalink
Browse files

Move screenshots

  • Loading branch information...
1 parent 88df24d commit a89a0d12521ffec585fe3e4c3fbce3939d7d8fd0 @agibsonsw committed Oct 10, 2012
View
@@ -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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a89a0d1

Please sign in to comment.