Permalink
Browse files

On close, delete dict entry.

  • Loading branch information...
1 parent 56beb63 commit 8e29fbe29a2bead6c97f822bd947268de65b552f @agibsonsw committed Oct 14, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 AndyEdits.py
View
@@ -346,4 +346,9 @@ def on_selection_modified(self, view):
edited.append(sublime.Region(cview['lastx'], cview['lasty']))
view.add_regions("edited_rgns", edited, ICONSCOPE, \
ICON, sublime.HIDDEN | sublime.PERSISTENT)
- cview['prev_line'] = None
+ cview['prev_line'] = None
+
+ def on_close(self, view):
+ vid = view.id()
+ if CaptureEditing.edit_info.has_key(vid):
+ del CaptureEditing.edit_info[vid]

0 comments on commit 8e29fbe

Please sign in to comment.