From 91df35a60256d28b68a60b4452c0698ddd2daecf 2011-12-06 01:40:56 From: Thomas Kluyver Date: 2011-12-06 01:40:56 Subject: [PATCH] Make readline tab-completion work in two-process terminal frontend. --- diff --git a/IPython/frontend/terminal/completer.py b/IPython/frontend/terminal/completer.py index 5524ef5..91e800e 100644 --- a/IPython/frontend/terminal/completer.py +++ b/IPython/frontend/terminal/completer.py @@ -43,7 +43,10 @@ class ClientCompleter2p(object): self.matches = [] print('WARNING: Kernel timeout on tab completion.') #print self.matches - return self.matches + try: + return self.matches[state] + except IndexError: + return None + - \ No newline at end of file