-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
81a64f introduced double width for some single width characters #184
Comments
I'll change mbyte.c. |
Anything I can give you a hand with? I tried it myself but for some reason my test builds would sometimes stop displaying multibyte characters correctly at all..
|
You can install the latest MacVim using https://github.com/macvim-dev/homebrew-macvim |
I recently became aware of this thread in the mac_vim list.
In summary a user is complaining that suddenly his supplementary characters are rendered double width but should in fact be rendered single width.
I noticed the same for status characters used by a plugin in my setup.
Here's a screenshot of the issue:
After some bisecting I discovered the issue was introduced in 81a64f5 which implemented Emoji support.
The problem seems to be a result of a few new and changed, but now too generous, character ranges in
src/mbyte.c
.Reverting only the changes to that file I get this:
I had a look at the unicode ranges for Emoji and - apart for the big Emoji block
U+1F300
+ - they are scattered across blocks inU+2300
/U+2500
/U+2600
undU+2700
.A proposed fix might be to check the output of
runtime/unicode.vim
and add the Emoji code points to the resultingdoublewidth
-table replacing the catch-all blocks that we have now.The text was updated successfully, but these errors were encountered: