QScintilla/Shell.py

changeset 5610
3af522dbfbea
parent 5603
4f2dd0850803
child 5631
d0beabfaad42
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.

eric ide

mercurial