Skip to content
Browse files

Attempt to correct prev line removed pro tem

  • Loading branch information...
1 parent f2f2727 commit 13a1fb462272ac9a54372c0bf2676d6bc8b97b4c @agibsonsw committed Oct 25, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 AndyEdits.py
View
20 AndyEdits.py
@@ -307,16 +307,16 @@ def on_modified(self, view):
view.line(sel).end()))
else:
# moving to a different line
- if cview['to_eol']:
- # adjust previous edit region to end-of-line
- prev_editl = view.get_regions("edited_rgn") or []
- if prev_editl:
- prev_editl = prev_editl[0]
- prev_editl = sublime.Region(prev_editl.begin(), \
- view.line(prev_editl.begin()).end())
- view.erase_regions("edited_rgn")
- view.add_regions("edited_rgn", [prev_editl], ICONCURRENT, \
- ICON, sublime.HIDDEN | sublime.PERSISTENT)
+ # if cview['to_eol']:
+ # # adjust previous edit region to end-of-line
+ # prev_editl = view.get_regions("edited_rgn") or []
+ # if prev_editl:
+ # prev_editl = prev_editl[0]
+ # prev_editl = sublime.Region(prev_editl.begin(), \
+ # view.line(prev_editl.begin()).end())
+ # view.erase_regions("edited_rgn")
+ # view.add_regions("edited_rgn", [prev_editl], ICONCURRENT, \
+ # ICON, sublime.HIDDEN | sublime.PERSISTENT)
cview['prev_line'] = cview['curr_line']
if currA > 0 and sel.empty():
# include the first character?

0 comments on commit 13a1fb4

Please sign in to comment.
Something went wrong with that request. Please try again.