Permalink
Browse files

Merge pull request #1 from takluyver/frontend-logging

Frontend logging
  • Loading branch information...
2 parents a86cb3d + 2873cab commit b4fdc33d00cb425a3fd90f9f92138c95645f1d5f @omazapa omazapa committed May 6, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 IPython/frontend/terminal/completer.py
View
7 IPython/frontend/terminal/completer.py
@@ -43,7 +43,10 @@ def complete(self, text, state):
self.matches = []
print('WARNING: Kernel timeout on tab completion.')
#print self.matches
- return self.matches
+ try:
+ return self.matches[state]
+ except IndexError:
+ return None
+
-

0 comments on commit b4fdc33

Please sign in to comment.