aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/_pyrepl/unix_console.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2024-05-21 22:35:44 -0400
committerGitHub <noreply@github.com>2024-05-22 04:35:44 +0200
commitc886bece3b3a49f8a0f188aecfc1d6ff89d281e6 (patch)
tree43956c1fc6a1df7b0c124fb0c9845ad364f5239a /Lib/_pyrepl/unix_console.py
parentd065edfb66470bbf06367b3570661d0346aa6707 (diff)
downloadcpython-c886bece3b3a49f8a0f188aecfc1d6ff89d281e6.tar.gz
cpython-c886bece3b3a49f8a0f188aecfc1d6ff89d281e6.zip
gh-111201: Add append to screen method to avoid recalculation (#119274)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/_pyrepl/unix_console.py')
-rw-r--r--Lib/_pyrepl/unix_console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyrepl/unix_console.py b/Lib/_pyrepl/unix_console.py
index 7c59f48df40..ec7d0636b9a 100644
--- a/Lib/_pyrepl/unix_console.py
+++ b/Lib/_pyrepl/unix_console.py
@@ -293,7 +293,7 @@ class UnixConsole(Console):
self.__show_cursor()
- self.screen = screen
+ self.screen = screen.copy()
self.move_cursor(cx, cy)
self.flushoutput()