comparison src/mbyte.c @ 26075:31bdc22000a1 v8.2.3571

patch 8.2.3571: some unicode control characters are considered printable Commit: https://github.com/vim/vim/commit/e2f66064d1c643f0cf12c4791de04bb123705a0c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 2 20:24:38 2021 +0000 patch 8.2.3571: some unicode control characters are considered printable Problem: Some unicode control characters are considered printable. Solution: Make 0x2060 - 0x2069 not printable.
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 Nov 2021 21:30:05 +0100
parents 30e60bfd5fb3
children 9f445e07f766
comparison
equal deleted inserted replaced
26074:676e1735d5dd 26075:31bdc22000a1
2607 // Sorted list of non-overlapping intervals. 2607 // Sorted list of non-overlapping intervals.
2608 // 0xd800-0xdfff is reserved for UTF-16, actually illegal. 2608 // 0xd800-0xdfff is reserved for UTF-16, actually illegal.
2609 static struct interval nonprint[] = 2609 static struct interval nonprint[] =
2610 { 2610 {
2611 {0x070f, 0x070f}, {0x180b, 0x180e}, {0x200b, 0x200f}, {0x202a, 0x202e}, 2611 {0x070f, 0x070f}, {0x180b, 0x180e}, {0x200b, 0x200f}, {0x202a, 0x202e},
2612 {0x206a, 0x206f}, {0xd800, 0xdfff}, {0xfeff, 0xfeff}, {0xfff9, 0xfffb}, 2612 {0x2060, 0x206f}, {0xd800, 0xdfff}, {0xfeff, 0xfeff}, {0xfff9, 0xfffb},
2613 {0xfffe, 0xffff} 2613 {0xfffe, 0xffff}
2614 }; 2614 };
2615 2615
2616 return !intable(nonprint, sizeof(nonprint), c); 2616 return !intable(nonprint, sizeof(nonprint), c);
2617 #endif 2617 #endif