Reestablish scroll
@@ -2087,6 +2087,11 @@ class ConsoleWidget(MetaQObjectHasTraits('NewBase', (LoggingConfigurable, superQ
cursor.insertText(text)
cursor.endEditBlock()
+ if self._executing and end_doc_pos - end_scroll_pos <= 1:
+ end_scroll = (self._control.verticalScrollBar().maximum()
+ - self._control.verticalScrollBar().pageStep())
+ self._control.verticalScrollBar().setValue(end_scroll)
+
def _insert_plain_text_into_buffer(self, cursor, text):
""" Inserts text into the input buffer using the specified cursor (which
must be in the input buffer), ensuring that continuation prompts are
