]> granicus.if.org Git - vim/commitdiff
patch 8.2.3571: some unicode control characters are considered printable v8.2.3571
authorBram Moolenaar <Bram@vim.org>
Tue, 2 Nov 2021 20:24:38 +0000 (20:24 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 2 Nov 2021 20:24:38 +0000 (20:24 +0000)
Problem:    Some unicode control characters are considered printable.
Solution:   Make 0x2060 - 0x2069 not printable.

src/mbyte.c
src/version.c

index 76eab4e2eca2f5c6fc428a02ba9e05e4a2b9a195..759be8bd7a9efa043672a2427b1b1932cbeec60d 100644 (file)
@@ -2609,7 +2609,7 @@ utf_printable(int c)
     static struct interval nonprint[] =
     {
        {0x070f, 0x070f}, {0x180b, 0x180e}, {0x200b, 0x200f}, {0x202a, 0x202e},
-       {0x206a, 0x206f}, {0xd800, 0xdfff}, {0xfeff, 0xfeff}, {0xfff9, 0xfffb},
+       {0x2060, 0x206f}, {0xd800, 0xdfff}, {0xfeff, 0xfeff}, {0xfff9, 0xfffb},
        {0xfffe, 0xffff}
     };
 
index 2f19980269227f7ca77858208f2c7e9b58c52560..43e8615458c71289f4595d1eebcd711d02b83360 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3571,
 /**/
     3570,
 /**/