From e5991ee579f05d520c6bdef515ebb30c38bbaad6 2010-08-23 20:20:32 From: epatters Date: 2010-08-23 20:20:32 Subject: [PATCH] Fixed bug introduced by the recent payload processing refactor. --- diff --git a/IPython/frontend/qt/console/ipython_widget.py b/IPython/frontend/qt/console/ipython_widget.py index 9a32b4d..91bbd83 100644 --- a/IPython/frontend/qt/console/ipython_widget.py +++ b/IPython/frontend/qt/console/ipython_widget.py @@ -190,6 +190,8 @@ class IPythonWidget(FrontendWidget): if self._previous_prompt_obj and \ self._previous_prompt_obj.number != previous_prompt_number: block = self._previous_prompt_obj.block + + # Make sure the prompt block has not been erased. if block.isValid() and not block.text().isEmpty(): # Remove the old prompt and insert a new prompt. diff --git a/IPython/frontend/qt/console/rich_ipython_widget.py b/IPython/frontend/qt/console/rich_ipython_widget.py index c38946c..de4d73b 100644 --- a/IPython/frontend/qt/console/rich_ipython_widget.py +++ b/IPython/frontend/qt/console/rich_ipython_widget.py @@ -81,7 +81,7 @@ class RichIPythonWidget(IPythonWidget): # Add other plot formats here! return False else: - return super(RichIPythonWidget, self)._process_execute_ok(msg) + return super(RichIPythonWidget, self)._process_execute_payload(item) #--------------------------------------------------------------------------- # 'RichIPythonWidget' protected interface