Tue, 14 Mar 2017 15:09:08 +0100
Fixed a few issues related to getting input and passwords in the Python shell.
(grafted from 3af522dbfbea94f15b5fb8c27f55c0d71576b3d2)
QScintilla/Shell.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/Shell.py Tue Mar 14 11:42:43 2017 +0100 +++ b/QScintilla/Shell.py Tue Mar 14 15:09:08 2017 +0100 @@ -1446,14 +1446,14 @@ else: if not self.echoInput: cmd = self.buff + self.buff = "" + elif cmd: + cmd = cmd[len(self.prompt):] self.inRawMode = False self.echoInput = True - if not cmd: - cmd = '' - else: - cmd = cmd[len(self.prompt):] + self.dbs.remoteRawInput(cmd) - + def __useHistory(self): """ Private method to display a command from the history.