-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
LuaSnip eating long unicodes #1007
Comments
Ohhhh yup, that's a bug. |
Alriiight, so multibyte characters work now :) |
I've tested it, it works well now, thank you! |
Thank you again. |
Dammit :| |
Okay, #1013 should work |
Finally got the PR into master, we should now have correct behaviour for all kinds of weird edgecases |
Seems to work indeed now. Thank you! |
Consider the snippet
to emphasize selected text (this is an example from LaTeX).
If the selected text is
𝔼f-𝔼abc
, e.g., then the result is\emph{𝔼f-𝔼a}
instead of\emph{𝔼f-𝔼abc}
. The reason seems to be that𝔼
is a long unicode character (u+1d53c). As there are two 𝔼s, LuaSnip ‘eats’ 2 characters. The same happens with other long unicode characters, or with 3 long unicode characters in the selected text, etc.It seems that LuaSnip somewhere messes the number of characters with the number of bytes.
The text was updated successfully, but these errors were encountered: