mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:7.4.1604
Problem: Although emoji characters are ambiguous width, best is to treat
them as full width.
Solution: Update the Unicode character tables. Add the 'emoji' options.
(Yasuhiro Matsumoto)
3848e00e01
This commit is contained in:
@@ -949,6 +949,9 @@ int utf_char2cells(int c)
|
||||
if (intable(doublewidth, ARRAY_SIZE(doublewidth), c))
|
||||
return 2;
|
||||
#endif
|
||||
if (p_emoji && intable(emoji, ARRAY_SIZE(emoji), c)) {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
/* Characters below 0x100 are influenced by 'isprint' option */
|
||||
else if (c >= 0x80 && !vim_isprintc(c))
|
||||
|
Reference in New Issue
Block a user