Skip to content

Commit 4ba6e8d

Browse files
committed
🐛 Destroy binding when the repository is destroyed
Fixes #12
1 parent ec5adb2 commit 4ba6e8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/minimap-git-diff-binding.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class MinimapGitDiffBinding
1919
@scheduleUpdate()
2020
@subscriptions.add repository.onDidChangeStatus (changedPath) =>
2121
@scheduleUpdate() if changedPath is @editor.getPath()
22+
@subscriptions.add repository.onDidDestroy =>
23+
@destroy()
2224

2325
@scheduleUpdate()
2426

0 commit comments

Comments
 (0)