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
Invisible character from YouTube chat copying #3570
Comments
The bytes between |
Related #1447 |
|
OOC what is "correct" behavior here? |
I think the expectation (at least in this comment field, and GUI text editors in general) is that nobody will ever edit text that contains a sequence of code-points they couldn't type from their regular keyboard. Once you start getting into the weirder parts of Unicode control sequences, like "right-to-left override" or emoji that are ligatures of other emoji, or (on some platforms) once you involve characters beyond the Basic Multilingual Plane, all bets are off and all kinds of weirdness can occur. Kakoune's behaviour here isn't the weirdest thing I've seen, and it allows surgical editing of individual code-points which is probably what you want in a programming-oriented editor. Possibly the nicest behaviour would be to temporarily expand zero-width characters to take an entire terminal cell (padding them with a space character) when selected so they'd be visible, but I have no idea how complex that would be to implement, and it would be a pretty niche feature. |
The text was updated successfully, but these errors were encountered: