mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
fix(charset): fix wrong display of 0xffff (#24158)
This commit is contained in:
@@ -645,8 +645,8 @@ size_t transchar_hex(char *const buf, const int c)
|
||||
size_t i = 0;
|
||||
|
||||
buf[i++] = '<';
|
||||
if (c > 255) {
|
||||
if (c > 255 * 256) {
|
||||
if (c > 0xFF) {
|
||||
if (c > 0xFFFF) {
|
||||
buf[i++] = (char)nr2hex((unsigned)c >> 20);
|
||||
buf[i++] = (char)nr2hex((unsigned)c >> 16);
|
||||
}
|
||||
|
Reference in New Issue
Block a user