summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/cmd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 8fa7d01..859e910 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -205,6 +205,8 @@ class Cmd:
if cmd is None:
return self.default(line)
self.lastcmd = line
+ if line == 'EOF' :
+ self.lastcmd = ''
if cmd == '':
return self.default(line)
else: