Skip to content

gh-159658: Fix the REPL mangling input when the prompt is wider than the terminal - #159659

Open
lazerg wants to merge 2 commits into
python:mainfrom
lazerg:fix-issue-159658
Open

lazerg wants to merge 2 commits into
python:mainfrom
lazerg:fix-issue-159658

Conversation

@lazerg

@lazerg lazerg commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

When the prompt fills the whole row, layout_content_lines() still forced one body character onto the prompt row, so the row overflowed the terminal and the first typed character got split from the rest. The force-progress fallback now only applies to rows without a prompt, so the prompt gets its own row and the input starts on the next one, the same as 3.14 does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant