Describe the bug
Characters such as Chinese, Japanese, and Korean occupy two characters in the terminal, and English characters and numbers occupy one character.
When moving the cursor to render the box, the number of steps counted as a single character will cause the characters to be confused.
To Reproduce
Steps to reproduce the behavior:
Go into inshellisense runtime.
Go to a git repo dir
Exec LANG=zh_CN git status
Repeat the previous command until the prompt reaches the last line of your screen
Now trigger suggestion box. try type git
Expected behavior
Render the suggestion box correctly.
Describe the bug Characters such as Chinese, Japanese, and Korean occupy two characters in the terminal, and English characters and numbers occupy one character.
When moving the cursor to render the box, the number of steps counted as a single character will cause the characters to be confused.
To Reproduce Steps to reproduce the behavior:
LANG=zh_CN git status
git
Expected behavior Render the suggestion box correctly.
Environment
0.0.1-rc.7
:Additional context