Commits

Henning Schröder committed ceb258a

fixed output of console

Comments (0)

Files changed (1)

 		if self.buf:
 			if not self.window().isVisible():
 				self.window().show()
-			end_block = self.document().end()
-			cursor = QTextCursor(end_block)
-			self.setTextCursor(cursor)
-			self.moveCursor(QTextCursor.EndOfBlock, QTextCursor.MoveAnchor)
-			cursor.insertText(self.buf)			
+			self.moveCursor(QTextCursor.End, QTextCursor.MoveAnchor)
+			self.textCursor().insertText(self.buf)			
+			self.moveCursor(QTextCursor.End, QTextCursor.MoveAnchor)
 			self.ensureCursorVisible()
 			self.buf = ""