Repository navigation
Conversation
… than the terminal
pablogsal
left a comment
There was a problem hiding this comment.
Please rebase against main to resolve the conflicts.
| column += char_width | ||
|
|
||
| if index_to_wrap_before == 0 and start < total: | ||
| if index_to_wrap_before == 0 and not current_prompt_width: |
There was a problem hiding this comment.
With a 65-column prompt in a 20-column terminal, this still adds a stray backslash and sends cursor moves past the margin. Can we split the prompt into physical rows and use those rows for cursor movement?
There was a problem hiding this comment.
Done in b480959: the prompt is now split into full-width rows in the layout map, so there is no backslash and up/down skip those rows instead of landing past the margin. I also merged main to fix the conflicts.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Hey @serhiy-storchaka, please take a look when you have time~ |
# Conflicts: # Lib/_pyrepl/layout.py
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @pablogsal: please review the changes made to this pull request. |
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.