Show More
@@ -190,7 +190,7 b' class IPythonWidget(FrontendWidget):' | |||||
190 | if self._previous_prompt_obj and \ |
|
190 | if self._previous_prompt_obj and \ | |
191 | self._previous_prompt_obj.number != previous_prompt_number: |
|
191 | self._previous_prompt_obj.number != previous_prompt_number: | |
192 | block = self._previous_prompt_obj.block |
|
192 | block = self._previous_prompt_obj.block | |
193 | if block.isValid(): |
|
193 | if block.isValid() and not block.text().isEmpty(): | |
194 |
|
194 | |||
195 | # Remove the old prompt and insert a new prompt. |
|
195 | # Remove the old prompt and insert a new prompt. | |
196 | cursor = QtGui.QTextCursor(block) |
|
196 | cursor = QtGui.QTextCursor(block) |
General Comments 0
You need to be logged in to leave comments.
Login now