Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When render a dropdown box on Chinese characters, wide characters, the cursor moves the wrong step #175

Open
PaulXu-cn opened this issue Feb 25, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@PaulXu-cn
Copy link

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:

  1. Go into inshellisense runtime.
  2. Go to a git repo dir
  3. Exec LANG=zh_CN git status
  4. Repeat the previous command until the prompt reaches the last line of your screen
  5. Now trigger suggestion box. try type git

Expected behavior
Render the suggestion box correctly.

Environment

  • OS: [Mac Intel]
  • Output of 0.0.1-rc.7:
  • Nodejs Version: 18.17.1
  • Shell: zsh
  • Shell Version: 5.7.1

Additional context
shell_box_err

@PaulXu-cn PaulXu-cn added the bug Something isn't working label Feb 25, 2024
@cpendery cpendery added this to the Backlog milestone Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants