Shell: fix an issue writing client output and the prompt in the wrong order.

Sat, 03 Nov 2018 20:04:41 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 03 Nov 2018 20:04:41 +0100
changeset 6578
2fb729cca297
parent 6577
232f83b6763b
child 6579
f0bbf95a0f26

Shell: fix an issue writing client output and the prompt in the wrong order.

QScintilla/Shell.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Shell.py	Sat Nov 03 17:18:15 2018 +0100
+++ b/QScintilla/Shell.py	Sat Nov 03 20:04:41 2018 +0100
@@ -827,6 +827,9 @@
         """
         Private method to write the prompt.
         """
+        # get all queued text first by forcing the -_concatenateText() to run
+        self.__concatenateText("")
+        
         self.__write(self.inContinue and sys.ps2 or sys.ps1)
         # little trick to get the cursor position registered within QScintilla
         self.SendScintilla(QsciScintilla.SCI_CHARLEFT)

eric ide

mercurial