FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-123177: Fix prompt for wrapped lines in pyrepl by godlygeek · Pull Request #123324 · python/cpython · GitHub

Repository navigation

gh-123177: Fix prompt for wrapped lines in pyrepl - #123324

Merged
pablogsal merged 1 commit into
python:mainfrom
godlygeek:fix_prompt_for_wrapped_lines_in_pyrepl
Aug 25, 2024
Merged

pablogsal merged 1 commit into
python:mainfrom
godlygeek:fix_prompt_for_wrapped_lines_in_pyrepl

Conversation

godlygeek commented Aug 25, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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.

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.

Copy link
Copy Markdown
Member

Tested locally in a bunch of different terminals and also checked that doesn't impact performance of Frankenstein pasting :)

pablogsal enabled auto-merge (squash) August 25, 2024 22:50
pablogsal added the needs backport to 3.13 only security fixes label Aug 25, 2024
pablogsal merged commit 602fcf9 into python:main Aug 25, 2024

Copy link
Copy Markdown

Thanks @godlygeek for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 25, 2024
)

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.
(cherry picked from commit 602fcf9)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>

bedevere-app Bot commented Aug 25, 2024

Copy link
Copy Markdown

GH-123327 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Aug 25, 2024
godlygeek deleted the fix_prompt_for_wrapped_lines_in_pyrepl branch August 25, 2024 23:40
pablogsal pushed a commit that referenced this pull request Aug 26, 2024
…123327)

gh-123177: Fix prompt for wrapped lines in pyrepl (GH-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.
(cherry picked from commit 602fcf9)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL