If command executed but is incomplete and more lines are needed prompt shouldn't be changed to ordinary one in this case.

This commit is contained in:
Dmitry Trofimov
2013-11-21 13:17:20 +01:00
parent 56e038568a
commit 2ddfd6a817
7 changed files with 19 additions and 15 deletions
+3 -3
View File
@@ -215,7 +215,7 @@ class BaseInterpreterInterface:
try:
self.startExec()
more = self.doAddExec(code_fragment)
self.finishExec()
self.finishExec(more)
finally:
if help is not None:
try:
@@ -358,13 +358,13 @@ class BaseInterpreterInterface:
else:
return None
def finishExec(self):
def finishExec(self, more):
self.interruptable = False
server = self.get_server()
if server is not None:
return server.NotifyFinished()
return server.NotifyFinished(more)
else:
return True