From 2995c0c0bbcc6bec5ae1cf9923d53fc6db20e942 2009-04-26 14:05:28 From: Gael Varoquaux Date: 2009-04-26 14:05:28 Subject: [PATCH] BUG: Fix handling of non-tab completion tab keys --- diff --git a/IPython/frontend/wx/wx_frontend.py b/IPython/frontend/wx/wx_frontend.py index 854c47e..d07ca3e 100644 --- a/IPython/frontend/wx/wx_frontend.py +++ b/IPython/frontend/wx/wx_frontend.py @@ -455,7 +455,8 @@ class WxController(ConsoleWidget, PrefilterFrontEnd): # Tab-completion elif event.KeyCode == ord('\t'): current_line, current_line_num = self.CurLine - if not re.match(r'^\s*$', current_line): + if not re.match(r'^%s\s*$' % self.continuation_prompt(), + current_line): self.complete_current_input() if self.AutoCompActive(): wx.CallAfter(self._popup_completion, create=True)