-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Full-width characters break gutter annotations #135
Comments
This is a duplicate of #107 and sadly it depends on the font used. |
I'm using monospace font but it doesn't work. Isn't there any way to calculate length of string using full-width character as two character? |
Unfortunately as I understand it (from the vscode issue around it) only certain monospace fonts actually render full-width characters as double-width. If the font does, like Inconsolata, then it works, otherwise it won't. But AFAIK, there is nothing I can do as a vscode extension to get that to work -- maybe it is something vscode can do, but again I don't know. Here is the vscode issue: microsoft/vscode#14589 |
@Phillyai can you try the Inconsolata font and see if you are still having an issue? I am currently using the string-width library to calculate the width of the line to pad it. |
@Phillyai is this a public repo that I can try out for myself? Also can you try setting: Also if you are interested I have a GitLens slack -- might be easier to talk about this. |
|
@Phillyai I think I see the issues. One is with the compact mode where I wasn't using string-width, and the other is my truncation function doesn't work properly with full-width characters. |
@Phillyai Just released v4.4.2 -- it should hopefully fix these issues. Thanks again for being persistent on this one! |
@Phillyai what font is that? (Also is that file in the repo?) |
I'm using Inconsolata, same as you, and sorry, this is another repository. |
OK -- I'll check that one out -- thank you! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When commit message contains fullwidth chracter happens.
The text was updated successfully, but these errors were encountered: