File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -283,6 +283,12 @@ func! BuildEmojiTable(pattern, tableName)
283283 call add (alltokens, token)
284284 endif
285285
286+ " Characters below 1F000 may be considered single width traditionally,
287+ " making them double width causes problems.
288+ if first < 0x1f000
289+ continue
290+ endif
291+
286292 " exclude characters that are in the "ambiguous" or "doublewidth" table
287293 for ambi in s: ambitable
288294 if first >= ambi[0 ] && first <= ambi[1 ]
Original file line number Diff line number Diff line change @@ -1445,64 +1445,6 @@ utf_char2cells(int c)
14451445 * based on http://unicode.org/emoji/charts/emoji-list.html */
14461446 static struct interval emoji_width [] =
14471447 {
1448- {0x203c , 0x203c },
1449- {0x2049 , 0x2049 },
1450- {0x2139 , 0x2139 },
1451- {0x21a9 , 0x21aa },
1452- {0x231a , 0x231b },
1453- {0x2328 , 0x2328 },
1454- {0x23cf , 0x23cf },
1455- {0x23e9 , 0x23f3 },
1456- {0x25aa , 0x25ab },
1457- {0x25fb , 0x25fe },
1458- {0x2600 , 0x2604 },
1459- {0x2611 , 0x2611 },
1460- {0x2618 , 0x2618 },
1461- {0x261d , 0x261d },
1462- {0x2620 , 0x2620 },
1463- {0x2622 , 0x2623 },
1464- {0x2626 , 0x2626 },
1465- {0x262a , 0x262a },
1466- {0x262e , 0x262f },
1467- {0x2638 , 0x263a },
1468- {0x2648 , 0x2653 },
1469- {0x2666 , 0x2666 },
1470- {0x267b , 0x267b },
1471- {0x267f , 0x267f },
1472- {0x2692 , 0x2694 },
1473- {0x2696 , 0x2697 },
1474- {0x2699 , 0x2699 },
1475- {0x269b , 0x269c },
1476- {0x26a0 , 0x26a1 },
1477- {0x26aa , 0x26ab },
1478- {0x26b0 , 0x26b1 },
1479- {0x26bd , 0x26bd },
1480- {0x26ce , 0x26ce },
1481- {0x2702 , 0x2702 },
1482- {0x2705 , 0x2705 },
1483- {0x2708 , 0x270d },
1484- {0x270f , 0x270f },
1485- {0x2712 , 0x2712 },
1486- {0x2714 , 0x2714 },
1487- {0x2716 , 0x2716 },
1488- {0x271d , 0x271d },
1489- {0x2721 , 0x2721 },
1490- {0x2728 , 0x2728 },
1491- {0x2733 , 0x2734 },
1492- {0x2744 , 0x2744 },
1493- {0x2747 , 0x2747 },
1494- {0x274c , 0x274c },
1495- {0x274e , 0x274e },
1496- {0x2753 , 0x2755 },
1497- {0x2763 , 0x2764 },
1498- {0x2795 , 0x2797 },
1499- {0x27a1 , 0x27a1 },
1500- {0x27b0 , 0x27b0 },
1501- {0x27bf , 0x27bf },
1502- {0x2934 , 0x2935 },
1503- {0x2b05 , 0x2b07 },
1504- {0x2b1b , 0x2b1c },
1505- {0x2b50 , 0x2b50 },
15061448 {0x1f004 , 0x1f004 },
15071449 {0x1f0cf , 0x1f0cf },
15081450 {0x1f1e6 , 0x1f1ff },
Original file line number Diff line number Diff line change @@ -748,6 +748,8 @@ static char *(features[]) =
748748
749749static int included_patches [] =
750750{ /* Add new patch number below this line */
751+ /**/
752+ 1642 ,
751753/**/
752754 1641 ,
753755/**/
You can’t perform that action at this time.
0 commit comments