Very erratic behavior with unicode characters
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.3.12
- OS version: 10.15.7 (19H2)
- Attach com.googlecode.iterm2.plist
- Attach a screen capture video if it would make the reproduction steps clearer.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem:
- Just type in a line
🏴 (a grapheme cluster that uses 7 characters)
- Try to edit the line
What happened: The cursor breaks the boundaries of the text, leaves garbage on screen, if you press anything on keyboard it will unpredictably introduce several other garbage on the line.
What should have happened: The cursor be positioned in the boundaries of the graphemes, edit them as a whole. See the video when I try to position at the start of 'ok' and then typing "not", or then typing "oops". I know, Unicode is hard. I'm struggling to implement it correctly in my alive-progress progress bar in python... I simply cannot test it reliably, usually have to copy the text from iTerm2, paste on sublime text to edit it there, and copy/paste again to bring it back. It's a pita. Thank you.