gh-135883: Fix sqlite3 CLI keeps part of previous commands when scrolling history#135884
Conversation
|
@ambv Maybe it would be better to implement this in |
Misc/NEWS.d/next/Library/2025-06-24-19-07-18.gh-issue-135883.38cePA.rst
Outdated
Show resolved
Hide resolved
|
Hi @erlend-aasland, could you take a look at this when you have some time? Thank you very much! |
|
Hi, the issue this PR addresses is still present in main branch. Would it be possible to get a review from core developers? Thank you very much! |
…b.com/tanloong/cpython into fix-keeping-part-of-previous-commands
This reverts commit bebca3e.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
…b.com/tanloong/cpython into fix-keeping-part-of-previous-commands
|
Thank you for the review! I've committed the change. It confused me why I added a comment in |
erlend-aasland
left a comment
There was a problem hiding this comment.
Thank you so much for the fix! (Sorry 'bout the late review!)
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Sorry, @tanloong and @erlend-aasland, I could not cleanly backport this to |
|
@tanloong, do you want to take a stab at the backports? |
Non-printing characters in the prompt need to be surrounded with
\001and\002so readline knows those characters don't occupy screen space on redisplay.Reference: https://lists.gnu.org/archive/html/bug-readline/2017-04/msg00018.html