Permalink
Browse files

Add evaluation at file loading to compensate the focus change mode

  • Loading branch information...
codeheroics committed Mar 14, 2013
1 parent 8b3d868 commit b790e613de2d7ba3f7a19f4b8473dad4c141e836
Showing with 8 additions and 0 deletions.
  1. +8 −0 git_gutter_events.py
View
@@ -25,6 +25,10 @@ def on_post_save(self, view):
if not self.non_blocking:
ViewCollection.add(view)
+ def on_load(self, view):
+ if not self.non_blocking:
+ ViewCollection.add(view)
+
def on_activated(self, view):
if not self.non_blocking and self.focus_change_mode:
ViewCollection.add(view)
@@ -46,6 +50,10 @@ def on_post_save_async(self, view):
if self.non_blocking:
ViewCollection.add(view)
+ def on_load_async(self, view):
+ if not self.non_blocking:
+ ViewCollection.add(view)
+
def on_activated_async(self, view):
if self.non_blocking and self.focus_change_mode:
ViewCollection.add(view)

0 comments on commit b790e61

Please sign in to comment.