-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Using some emoji in kitty causes errors while typing #5625
Comments
The Sun emoji is a combination of two escaped characters.
So you need to move the cursor by two characters. |
Moving the cursor twice changes nothing. Even if that were the case, I'd still consider that a bug. I shouldn't be able to "split" an emoji like that. Are you saying this may be a problem with my shell and not kitty? I can tell you that this bug doesn't happen in xfce4-terminal or gnome-terminal. It also doesn't happen if I repeat these steps in kitty while using neovim. |
This is an issue with your shell, try pasting you rmoji into a program |
That's not clear from what I've seen. Yes, this doesn't happen in vim. But this also doesn't happen when using the same shell in other terminal emulators. It doesn't seem like you read my comment, else you would've known I already tried pasting into vim and noticed this wasn't a problem. |
Because the terminal emulators in question will have the same bug as the |
Ok. Given what I've read in the other issues around emoji reported here, I can believe that. Thanks. |
Your reply is edited at least 7 times, then the viewer is not looking at the last one when replying (e.g. only the first sent reply will be received in the mailbox), even if the GitHub live update feature is working. See other related issues to learn more. |
It didn't occur to me that editing could be a reason why it wasn't seen. Thanks for pointing that out. Sorry. I spent about two hours looking at issues here and at one or two related neovim issues as well since that's where I first noticed problems. I still don't know how to tell what program is responsible for the issues. Or more importantly what to do next. |
I looked at those issues before making my issue here. |
Describe the bug
Kitty doesn't handle some emoji correctly. I don't know about everything that goes wrong, but one example is if you paste "☀️" emoji into the terminal and then move the cursor behind it and keep typing, what the terminal shows will be different from what you typed.
I think the issue is for multibyte emoji. They don't need to have zero-width joiners, as I think the Sunny emoji doesn't use that. So I don't think this is a duplicate of #3810.
To Reproduce
Steps to reproduce the behavior:
asdf
several times.asdf
.Screenshots
kitty-emoji-bug-2022-10-26_18.54.59.mp4
In the second line, you see what was really typed: "asdfasdfasdf☀️". But what's in the first line is what is shown instead.
Environment details
Additional context
You can produce this with
kitty --config NONE
. The video I posted uses no config.The text was updated successfully, but these errors were encountered: