Skip to content

gh-67804: Do not let Undo delete output in the IDLE Shell - #157697

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-67804-undo-output
Open

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-67804-undo-output

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Output written to the Shell was recorded by the undo delegator, so holding Undo while a statement was running deleted its output and then the statement itself. Now output is inserted below the undo delegator, so it is not recorded, and the undo stack is reset when output is written, because its entries refer to positions after the output. Undo can only affect what was typed since the last output.

🤖 Generated with Claude Code

Output is now inserted below the undo delegator, so it is not recorded
for undo, and the undo stack is reset when output is written.  Holding
Undo while a statement runs no longer deletes its output and the
statement itself.
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant