Skip to content

gh-150462: Fix cursor position when using \b#150488

Open
edvilme wants to merge 3 commits into
python:mainfrom
edvilme:pyrepl-backspace
Open

gh-150462: Fix cursor position when using \b#150488
edvilme wants to merge 3 commits into
python:mainfrom
edvilme:pyrepl-backspace

Conversation

@edvilme
Copy link
Copy Markdown
Contributor

@edvilme edvilme commented May 26, 2026

Fixes length miscalculation when dealing with \b character that caused the cursor to be placed in an incorrect position

Refactors Lib/_pyrepl/utils.py wlen to properly handle \b characters.

Fixes length miscalculation when dealing with \b character that caused the cursor to be placed in an incorrect position
@edvilme edvilme changed the title gh-150462: Fix cursor position when using \\b gh-150462: Fix cursor position when using \b May 26, 2026
Copy link
Copy Markdown
Contributor

@florentx florentx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thank you.

Comment thread Lib/_pyrepl/utils.py Outdated
Comment thread Lib/_pyrepl/utils.py Outdated
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.

2 participants