]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-123177: Fix prompt for wrapped lines in pyrepl (#123324)
authorMatt Wozniski <mwozniski@bloomberg.net>
Sun, 25 Aug 2024 22:54:06 +0000 (18:54 -0400)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2024 22:54:06 +0000 (22:54 +0000)
commit602fcf97df1665538d4e9841f9dc6bc33e38bece
treecc892e3ee534c2781c0ce5dbf97658d08175c9e6
parent70bfef52b5734d6cd81c5e8ca9eaf85658916b04
gh-123177: Fix prompt for wrapped lines in pyrepl (#123324)

When display lines above the cursor come from the cache, the first line
to not come from the cache may be a wrapped line, starting half way
through a logical line in the buffer. Detect and handle this case to
avoid accidentally drawing a stray prompt in the middle of a logical
line.
Lib/_pyrepl/reader.py
Lib/test/test_pyrepl/test_reader.py
Misc/NEWS.d/next/Core_and_Builtins/2024-08-25-18-27-49.gh-issue-123177.yLuyqE.rst [new file with mode: 0644]