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:
parent
61dd52b50f
commit
a7d9c63a4e
2 changed files with 651 additions and 651 deletions
|
|
@ -400,7 +400,7 @@ def add(p, comment, chars_, ret):
|
|||
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
1300
kitty/wcwidth-std.h
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue