Skip to content

Commit

Permalink
Merge 51cc753 into 06cd544
Browse files Browse the repository at this point in the history
  • Loading branch information
impact27 authored Mar 22, 2019
2 parents 06cd544 + 51cc753 commit 1e3d199
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qtconsole/console_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -2086,9 +2086,11 @@ def _insert_plain_text(self, cursor, text, flush=False):
else:
cursor.insertText(text)
cursor.endEditBlock()

if self._executing and end_doc_pos - end_scroll_pos <= 1:
self._control.moveCursor(QtGui.QTextCursor.End)
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
Expand Down

0 comments on commit 1e3d199

Please sign in to comment.