]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (GH-95512)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Aug 2022 05:32:33 +0000 (22:32 -0700)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 05:32:33 +0000 (22:32 -0700)
commite4541c474aa5a4e27c5d1078de4508fef018b302
treedc4dcb3f009647ea2f77611f681b8782c287a058
parenta4cda28f7b83c25ed412f8ce2a502fd54d7b4c5a
gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (GH-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 fc31a13dc1799b8d972c1f4ea49f27090aed7f48)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/NEWS.txt
Lib/idlelib/idle_test/test_sidebar.py
Lib/idlelib/pyshell.py
Misc/NEWS.d/next/IDLE/2022-07-31-22-15-14.gh-issue-95511.WX6PmB.rst [new file with mode: 0644]