Skip to content

gh-95511: IDLE - fix Shell context menu copy-with-prompts bug - #95512

Merged
terryjreedy merged 2 commits into
python:mainfrom
terryjreedy:prompts
Aug 1, 2022
Merged

terryjreedy merged 2 commits into
python:mainfrom
terryjreedy:prompts

Conversation

@terryjreedy

@terryjreedy terryjreedy commented Aug 1, 2022 •

Copy link
Copy Markdown
Member

If one selects whole lines, as the sidebar makes easy, do not
add an extra line. Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line. (Also improve the surrounding code.)

If one selects whole lines, as the sidebar makes easy, do not
add an extra line.  Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line.  (Also improve the surrounding code.)
@terryjreedy

Copy link
Copy Markdown
Member Author

I made extensive manual tests before making the PR, and it is those, along with logic, that convince me that the patch is correct. The existing test_copy_with_prompts required the buggy behavior until I fixed it.

@terryjreedy
terryjreedy merged commit fc31a13 into python:main Aug 1, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 1, 2022
@bedevere-bot

Copy link
Copy Markdown

GH-95519 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 1, 2022
…ythonGH-95512)

If one selects whole lines, as the sidebar makes easy, do not
add an extra line.  Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line.  (Also improve the surrounding code.)
(cherry picked from commit fc31a13)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 1, 2022
…ythonGH-95512)

If one selects whole lines, as the sidebar makes easy, do not
add an extra line.  Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line.  (Also improve the surrounding code.)
(cherry picked from commit fc31a13)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-bot

Copy link
Copy Markdown

GH-95520 is a backport of this pull request to the 3.10 branch.

@terryjreedy
terryjreedy deleted the prompts branch August 1, 2022 05:08
miss-islington added a commit that referenced this pull request Aug 1, 2022
If one selects whole lines, as the sidebar makes easy, do not
add an extra line.  Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line.  (Also improve the surrounding code.)
(cherry picked from commit fc31a13)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
miss-islington added a commit that referenced this pull request Aug 1, 2022
If one selects whole lines, as the sidebar makes easy, do not
add an extra line.  Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line.  (Also improve the surrounding code.)
(cherry picked from commit fc31a13)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants