Matt Anonyme wrote:

> I am trying to hack on vim's codebase but there is something I dont get, 
> that is the value of MB_MAXBYTES defined at:
> https://github.com/vim/vim/blob/c17e66c5c0acd5038f1eb3d7b3049b64bb6ea30b/src/vim.h#L1771
> 
> Here is the description:
> ====
> /// character of up to 6 bytes, or one 16-bit character of up to three bytes 
> /// plus six following composing characters of three bytes each. 
> #define MB_MAXBYTES 21
> /// Maximum number of bytes in a multi-byte character. It can be one 32-bit 
> ====
> 
> I understand that 3 + 6 * 3 = 21 but I don't get how we can input a 
> multibyte character of 21 bytes ? In what encoding/way is it possible ?

We allow for six composing character, they go in the same screen cell.

-- 
Facepalm reply #3: "I had a great time in Manhattan" "I thought you were
going to New York?"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202006061202.056C2mMb1257414%40masaka.moolenaar.net.

Raspunde prin e-mail lui