Guard against State not being initialized
As reported
@@ -88,7 +88,7 @@ class UpdateState(sublime_plugin.EventListener):
def on_selection_modified_async(self, view):
active_view = State['active_view']
- if active_view.buffer_id() != view.buffer_id():
+ if not active_view or active_view.buffer_id() != view.buffer_id():
return
current_pos = get_current_pos(active_view)
