What happened?
When using a CJK input method (e.g. macOS Chinese Pinyin) in pi's interactive mode, typing / at the start of a line triggers the slash-command autocomplete menu. Once the menu appears, the IME candidate window is positioned at the wrong location — often far below the cursor or at the bottom of the terminal — instead of directly above the text cursor.
The editor still accepts input, but the candidate window no longer tracks the cursor, making CJK input unusable during slash commands.
Steps to reproduce
- Start pi in interactive mode.
- Switch to a CJK input method (e.g. macOS Chinese Pinyin).
- Type
/ at the beginning of the input line.
- Start typing any character (e.g.
s for "收拾").
- Observe that the IME candidate window appears in the wrong position, detached from the cursor.
Expected behavior
The IME candidate window should remain anchored to the text cursor even while the slash-command autocomplete menu is visible, just as it does during normal text input.
Version
0.76.0
What happened?
When using a CJK input method (e.g. macOS Chinese Pinyin) in pi's interactive mode, typing
/at the start of a line triggers the slash-command autocomplete menu. Once the menu appears, the IME candidate window is positioned at the wrong location — often far below the cursor or at the bottom of the terminal — instead of directly above the text cursor.The editor still accepts input, but the candidate window no longer tracks the cursor, making CJK input unusable during slash commands.
Steps to reproduce
/at the beginning of the input line.sfor "收拾").Expected behavior
The IME candidate window should remain anchored to the text cursor even while the slash-command autocomplete menu is visible, just as it does during normal text input.
Version
0.76.0