diff -r 5bf0aaa818e9 -r 3af522dbfbea QScintilla/Shell.py --- 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.