You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
REPL/node:readline: text insertion or paste at non-end cursor position results in scrambled character order #60624
changed the title [-]REPL/node:readline: Japanese IME composition inserts characters in wrong order after cursor move (macOS)[/-][+]REPL/node:readline: text insertion or paste at non-end cursor position results in scrambled character order[/+]on Nov 7, 2025
Activity
mandel59 commentedon Nov 7, 2025
I found that this issue is not limited to Japanese IME or Unicode characters.
It also reproduces with plain ASCII text when pasting.
Steps:
Start the Node.js REPL.
Type ''
Move the cursor one character to the left (so the caret is between the quotes).
Copy and paste the string
aborabc.Expected:
'ab'or'abc'Actual:
'ab'→''ba'abc'→''acbSo the same incorrect behavior occurs even without using IME or non-ASCII input.
[-]REPL/node:readline: Japanese IME composition inserts characters in wrong order after cursor move (macOS)[/-][+]REPL/node:readline: text insertion or paste at non-end cursor position results in scrambled character order[/+]Renegade334 commentedon Nov 7, 2025
Duplicate of #60446. It sounds like the character set phenomenon is the same issue.