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
cursor is offset when using unicode text with combining characters #3698
Comments
|
We could potentially handle this by using the |
|
This bug does not only apply to combining characters. It also occurs with the script/italic characters (e.g. 𝜎). But the bug does not manifest for σ. Use case where this is important: using italic Greek characters in Shiny input labels (so that they match the characters printed by MathJax). |
|
The issue also affects the horizontal scroll bar and incorrectly soft-wraps text. In general, I think code point normalization isn't going to help. In the extreme case, you have zero-width characters (e.g. TAG characters e0001 - e007e) which don't have a normalization but still do offset the cursor position. Example: |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions. |
|
This issue has been automatically closed due to inactivity. |
System details
Steps to reproduce the problem
Copy + paste the following text into RStudio:
and move the cursor to the end of the line.
Describe the problem in detail
The cursor goes too far:
Describe the behavior you expected
The cursor should be placed at the end of the line, following the last character.
The text was updated successfully, but these errors were encountered: