aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-12 19:51:58 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-12 19:55:11 -0400
commit210fa1e02dbfe8d36c6bf81d589fd921f60b4396 (patch)
tree26d597692d79f0012633352f86188e4eaac3f5da /src
parentd08692a8246039b938b5645a6c01b4ff7f51671e (diff)
downloadrneovim-210fa1e02dbfe8d36c6bf81d589fd921f60b4396.tar.gz
rneovim-210fa1e02dbfe8d36c6bf81d589fd921f60b4396.tar.bz2
rneovim-210fa1e02dbfe8d36c6bf81d589fd921f60b4396.zip
vim-patch:8.1.1156: Unicode emoji and other image characters not recognized
Problem: Unicode emoji and other image characters not recognized. Solution: Add ranges for musical notation, game pieces, etc. (Martin Tournoij, closes vim/vim#4238) https://github.com/vim/vim/commit/d489c9801b3aaf284d42643507bbfb9ce3bc0f2f
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mbyte.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index 6c34cacb8d..26da92acc9 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -1128,6 +1128,10 @@ int utf_class_tab(const int c, const uint64_t *const chartab)
{0xff1a, 0xff20, 1}, /* half/fullwidth ASCII */
{0xff3b, 0xff40, 1}, /* half/fullwidth ASCII */
{0xff5b, 0xff65, 1}, /* half/fullwidth ASCII */
+ {0x1d000, 0x1d24f, 1}, // Musical notation
+ {0x1d400, 0x1d7ff, 1}, // Mathematical Alphanumeric Symbols
+ {0x1f000, 0x1f2ff, 1}, // Game pieces; enclosed characters
+ {0x1f300, 0x1f9ff, 1}, // Many symbol blocks
{0x20000, 0x2a6df, 0x4e00}, /* CJK Ideographs */
{0x2a700, 0x2b73f, 0x4e00}, /* CJK Ideographs */
{0x2b740, 0x2b81f, 0x4e00}, /* CJK Ideographs */