Skip to content
This repository
Browse code

On close, delete dict entry.

  • Loading branch information...
commit 8e29fbe29a2bead6c97f822bd947268de65b552f 1 parent 56beb63
agibsonsw authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 AndyEdits.py
7 AndyEdits.py
@@ -346,4 +346,9 @@ def on_selection_modified(self, view):
346 346 edited.append(sublime.Region(cview['lastx'], cview['lasty']))
347 347 view.add_regions("edited_rgns", edited, ICONSCOPE, \
348 348 ICON, sublime.HIDDEN | sublime.PERSISTENT)
349   - cview['prev_line'] = None
  349 + cview['prev_line'] = None
  350 +
  351 + def on_close(self, view):
  352 + vid = view.id()
  353 + if CaptureEditing.edit_info.has_key(vid):
  354 + del CaptureEditing.edit_info[vid]

0 comments on commit 8e29fbe

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