Open jonathanslenders opened 8 years ago
The first part has been implemented in: https://github.com/jonathanslenders/python-prompt-toolkit/commit/f311c7524a318ba2bf264bc2024388706e0485e8
Cursor movement still needs to be done. Right now it's still possible to position the cursor in the middle of the decomposed character.
See https://github.com/ipython/ipython/issues/9376#issuecomment-394802297
It seems that it doesn't work for double width chars.
'你̂好̄嗎̃'
Hi @randy3k, thanks for noticing! This commit should fix that: https://github.com/jonathanslenders/python-prompt-toolkit/commit/c6ebc96aa3278a6136d76e4ba98308044293a8a2 Can you please try again?
Notice that it still requires multiple cursor movements (left/right arrow) to move across these characters.
See: https://github.com/ipython/ipython/pull/9378