Skip to content

Commit 1485b10

Browse files
committed
Set self.matches to an empty list if import completion does not match anything
1 parent 303dbd0 commit 1485b10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bpython/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ def _complete(self, unused_tab=False):
606606
e = False
607607
matches = importcompletion.complete(self.s, cw)
608608
if matches is None:
609+
self.matches = []
609610
self.scr.redrawwin()
610611
return False
611612

0 commit comments

Comments
 (0)