We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03519f9 + aeaf337 commit 2d530c1Copy full SHA for 2d530c1
git-blame.py
@@ -177,7 +177,11 @@ def on_phantom_close(self, href):
177
def run(self, edit):
178
phantoms = []
179
self.view.erase_phantoms('git-blame')
180
-
+ #Before adding the phantom, see if the current phantom that is displayed is at the same spot at the selection
181
+ if self.phantom_set.phantoms and self.view.line(self.view.sel()[0]) == self.view.line(self.phantom_set.phantoms[0].region):
182
+ self.phantom_set.update(phantoms)
183
+ return
184
+
185
for region in self.view.sel():
186
line = self.view.line(region)
187
(row, col) = self.view.rowcol(region.begin())
0 commit comments