Skip to content

Commit 9097b85

Browse files
committed
The rerun method is not necessarily ran by user request
1 parent d567a41 commit 9097b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blame_inline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ def is_applicable(cls, view_settings):
4242
return cls.determine_enablement(view_settings)
4343

4444
def on_selection_modified_async(self):
45+
self.close_by_user_request()
4546
self.rerun()
4647

4748
def on_post_save_async(self):
49+
self.close_by_user_request()
4850
# When the file view goes from having unsaved changes to having no unsaved
4951
# changes, it becomes eligible for Inline Blame to be shown again. Act on that
5052
# fact now, rather than waiting for the next time the caret gets moved.
@@ -62,7 +64,6 @@ def close_by_user_request(self):
6264
self.view.erase_phantoms(INLINE_BLAME_PHANTOM_SET_KEY)
6365

6466
def rerun(self, **kwargs):
65-
self.close_by_user_request()
6667
if self.timer:
6768
self.timer.cancel()
6869
self.timer = threading.Timer(self.delay_seconds, self.show_inline_blame)

0 commit comments

Comments
 (0)