diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2024-05-23 04:12:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 04:12:26 (GMT) |
commit | 9fa1b4fc466e9857210fd6e87f1cbf0c234886ee (patch) | |
tree | 94c20867abccc8fbe4e2b94cb304f0f4d3eb9963 /Misc | |
parent | dbff1f107731c76770ed279170a709a54601f8be (diff) | |
download | cpython-9fa1b4fc466e9857210fd6e87f1cbf0c234886ee.zip cpython-9fa1b4fc466e9857210fd6e87f1cbf0c234886ee.tar.gz cpython-9fa1b4fc466e9857210fd6e87f1cbf0c234886ee.tar.bz2 |
[3.13] gh-118911: Trailing whitespace in a block shouldn't prevent the user from terminating the code block (GH-119355) (#119404)
(cherry picked from commit 5091c4400c9ea2a2d1e4d89a28c9d0de2651fa6d)
Co-authored-by: Aya Elsayed <ayah.ehab11@gmail.com>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-05-21-20-13-23.gh-issue-118911.iG8nMq.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-05-21-20-13-23.gh-issue-118911.iG8nMq.rst b/Misc/NEWS.d/next/Library/2024-05-21-20-13-23.gh-issue-118911.iG8nMq.rst new file mode 100644 index 0000000..4f15c1b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-05-21-20-13-23.gh-issue-118911.iG8nMq.rst @@ -0,0 +1,5 @@ +In PyREPL, updated ``maybe-accept``'s logic so that if the user hits +:kbd:`Enter` twice, they are able to terminate the block even if there's +trailing whitespace. Also, now when the user hits arrow up, the cursor +is on the last functional line. This matches IPython's behavior. +Patch by Aya Elsayed. |