Skip to content

Commit 731cda7

Browse files
thomasballingersebastinas
authored andcommitted
fix #483 temporarily
(cherry picked from commit 291a5d3)
1 parent 28510c9 commit 731cda7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bpython/autocomplete.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ def matches(self, cursor_offset, line, **kwargs):
365365
except jedi.NotFoundError:
366366
self._orig_start = None
367367
return None
368+
except IndexError:
369+
# for https://github.com/bpython/bpython/issues/483
370+
self._orig_start = None
371+
return None
372+
368373
if completions:
369374
diff = len(completions[0].name) - len(completions[0].complete)
370375
self._orig_start = cursor_offset - diff

0 commit comments

Comments
 (0)