QScintilla/Shell.py

branch
maintenance
changeset 5612
ec9b9badcfdf
parent 5389
9b1c800daff3
child 5633
1a767ca5bbf3
diff -r 0e2ec2edbfa6 -r ec9b9badcfdf 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