Skip to content

Commit fb06fd8

Browse files
committed
Early return if there are no selections
Saw an IndexError happen while testing in ST3
1 parent 4be4a26 commit fb06fd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/blame_inline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ def show_inline_blame(self):
115115

116116
phantoms = []
117117
sels = self.view.sel()
118+
if len(sels) < 1:
119+
return
120+
118121
# @todo Support showing inline blame for multiple carets?
119122
# @body Maybe with a sanity check that there aren't too many (more than 10?)
120123
line = self.view.line(sels[0])

0 commit comments

Comments
 (0)