825 |
825 |
826 def __writePrompt(self): |
826 def __writePrompt(self): |
827 """ |
827 """ |
828 Private method to write the prompt. |
828 Private method to write the prompt. |
829 """ |
829 """ |
|
830 # get all queued text first by forcing the -_concatenateText() to run |
|
831 self.__concatenateText("") |
|
832 |
830 self.__write(self.inContinue and sys.ps2 or sys.ps1) |
833 self.__write(self.inContinue and sys.ps2 or sys.ps1) |
831 # little trick to get the cursor position registered within QScintilla |
834 # little trick to get the cursor position registered within QScintilla |
832 self.SendScintilla(QsciScintilla.SCI_CHARLEFT) |
835 self.SendScintilla(QsciScintilla.SCI_CHARLEFT) |
833 self.SendScintilla(QsciScintilla.SCI_CHARRIGHT) |
836 self.SendScintilla(QsciScintilla.SCI_CHARRIGHT) |
834 |
837 |