From 32356f53636889e48b872576eb9165273b5b8323 2013-07-26 00:59:26 From: MinRK Date: 2013-07-26 00:59:26 Subject: [PATCH] fix raw_input in qtconsole adds a flush, whose absence produced mis-measured prompts, including the prompt in the raw_input reply. closes #3785 --- diff --git a/IPython/qt/console/console_widget.py b/IPython/qt/console/console_widget.py index 87cd3a4..46877ac 100644 --- a/IPython/qt/console/console_widget.py +++ b/IPython/qt/console/console_widget.py @@ -2060,6 +2060,7 @@ class ConsoleWidget(LoggingConfigurable, QtGui.QWidget): self._prompt = prompt self._prompt_html = None + self._flush_pending_stream() self._prompt_pos = self._get_end_cursor().position() self._prompt_started()