Repository navigation
Conversation
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
|
@lysnikolaou, @ambv Could one of you take a look? It follows pablogsal's suggested fix on the issue: split |
pablogsal
left a comment
There was a problem hiding this comment.
Can getpending() return the queued input before it calls _read_input_bulk()? If one read contains two complete pastes, the second paste waits for another keypress. Can we add a Windows VT test that sends both pastes in one read and checks that each Enter submits its block?
|
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 |
|
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. |
A newline sent right after a bracketed paste was inserted as text instead of running the block, because
perform_bracketed_pasteinserted everything it read, including input after the closing marker.This implements @pablogsal's fix from the issue: accumulate
event.raw, split at the first closing marker, insert the prefix, and push the rest back withpush_char().On Windows,
getpending()now fillsrawand joins UTF-16 surrogate pairs (reading again if a pair is split between reads), andpush_char()is implemented.