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
@ -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
1300
kitty/wcwidth-std.h
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user