summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-12 20:00:21 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-12 20:00:21 +0200
commitd489c9801b3aaf284d42643507bbfb9ce3bc0f2f (patch)
treed0ef4e9fb69859be9895175c5970c2692efdf64b
parent3fbd2d7c316eaeea463b2f84f29b36d439306bf9 (diff)
patch 8.1.1156: Unicode emoji and other image characters not recognizedv8.1.1156
Problem: Unicode emoji and other image characters not recognized. Solution: Add ranges for musical notation, game pieces, etc. (Martin Tournoij, closes #4238)
-rw-r--r--src/mbyte.c4
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index a9932a1435..6cdf32a332 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -2836,6 +2836,10 @@ utf_class_buf(int c, buf_T *buf)
{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 */
diff --git a/src/version.c b/src/version.c
index de7a99d9e5..334a7ecef1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1156,
+/**/
1155,
/**/
1154,