Skip to content

Commit 4c5d6ac

Browse files
committed
Merge remote-tracking branch 'origin/master' into patch-1
2 parents e001e44 + 4fdbf06 commit 4c5d6ac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- This project is currently unmaintained please see issue #35
2+
(https://github.com/psykzz/st3-gitblame/issues/35). Thanks! -->

git-blame.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,11 @@ def run(self, edit):
186186
phantoms = []
187187
self.view.erase_phantoms('git-blame')
188188
# Before adding the phantom, see if the current phantom that is displayed is at the same spot at the selection
189-
phantom_exists = self.view.line(self.view.sel()[0]) == self.view.line(self.phantom_set.phantoms[0].region)
190-
if self.phantom_set.phantoms and phantom_exists:
191-
self.phantom_set.update(phantoms)
192-
return
189+
if self.phantom_set.phantoms:
190+
phantom_exists = self.view.line(self.view.sel()[0]) == self.view.line(self.phantom_set.phantoms[0].region)
191+
if phantom_exists:
192+
self.phantom_set.update(phantoms)
193+
return
193194

194195
for region in self.view.sel():
195196
line = self.view.line(region)

0 commit comments

Comments
 (0)