summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2024-10-19 21:46:57 (GMT)
committerGitHub <noreply@github.com>2024-10-19 21:46:57 (GMT)
commit8f5e39d5c885318e3128a3e84464c098b5f79a79 (patch)
tree91291c6b4555f090add7146f3de660fb4fb2b317 /Lib/pdb.py
parent4c53b2577531c77193430cdcd66ad6385fcda81f (diff)
downloadcpython-8f5e39d5c885318e3128a3e84464c098b5f79a79.zip
cpython-8f5e39d5c885318e3128a3e84464c098b5f79a79.tar.gz
cpython-8f5e39d5c885318e3128a3e84464c098b5f79a79.tar.bz2
gh-125378: Trigger a repeat for the full multi-line statement for empty line command (#125717)
Diffstat (limited to 'Lib/pdb.py')
-rw-r--r--Lib/pdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index cd7a704..832213a 100644
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -755,6 +755,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
else:
line = line.rstrip('\r\n')
buffer += '\n' + line
+ self.lastcmd = buffer
save_stdout = sys.stdout
save_stdin = sys.stdin
save_displayhook = sys.displayhook