Skip to content

gh-162197: Fix yank-pop tracking in PyREPL - #162252

Open
edvilme wants to merge 4 commits into
python:mainfrom
edvilme:pyrepl-yank
Open

edvilme wants to merge 4 commits into
python:mainfrom
edvilme:pyrepl-yank

Conversation

@edvilme

@edvilme edvilme commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Failed yank-pop commands are still recorded as valid yank-pop operations. So the next yank-pop command attempts to replace text that had not been inserted. This causes a negative cursor position calculation (and hence a traceback).

Instead, it should also report previous command was not a yank and return.

Failed `yank-pop` commands are still recorded as valid `yank-pop`
operations. So the next `yank-pop` command attempts to replace text that
had not been inserted. This causes a negative cursor position
calculation (and hence a traceback).

Instead, it should also report `previous command was not a yank` and
return.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant