Skip to content
Browse files

Prevent on_selec running in dialogs

  • Loading branch information...
1 parent 68cf854 commit 07b68dcdc9cc8d276159861708e1548a9f81ca14 @agibsonsw committed Oct 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 AndyEdits.py
View
6 AndyEdits.py
@@ -282,6 +282,12 @@ def on_modified(self, view):
ICON, sublime.HIDDEN | sublime.PERSISTENT)
def on_selection_modified(self, view):
+ if not isView(view.id()):
+ # maybe using Find? etc.
+ window = sublime.active_window()
+ edit_view = window.active_view() if window != None else None
+ _ = adjustEdits(edit_view)
+ return
vid = view.id()
if not CaptureEditing.edit_info.has_key(vid):
CaptureEditing.edit_info[vid] = {}

0 comments on commit 07b68dc

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