wcwidth() for not assigned code points should be -4

That way, wcswidth() computes their width as 1, which matches how they
are rendered
This commit is contained in:
Kovid Goyal 2018-06-14 10:27:42 +05:30
parent 61dd52b50f
commit a7d9c63a4e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 651 additions and 651 deletions

View File

@ -400,7 +400,7 @@ def gen_wcwidth():
add(p, 'East Asian double width', doublewidth, 2)
add(p, 'Emoji Presentation', emoji_categories['Emoji_Presentation'], 2)
add(p, 'Not assigned in the unicode character database', not_assigned, -1)
add(p, 'Not assigned in the unicode character database', not_assigned, -4)
p('\t\tdefault: return 1;')
p('\t}')

1300
kitty/wcwidth-std.h generated

File diff suppressed because it is too large Load Diff