mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Use the new multi-stage unicode table for wcwidth
This commit is contained in:
@@ -130,3 +130,11 @@ func (s *GraphemeSegmentationState) Step(ch CharProps) bool {
|
||||
}
|
||||
return add_to_cell
|
||||
}
|
||||
|
||||
func Runewidth(code rune) int {
|
||||
return CharPropsFor(code).Width()
|
||||
}
|
||||
|
||||
func IsEmojiPresentationBase(code rune) bool {
|
||||
return CharPropsFor(code).Is_emoji_presentation_base() == 1
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user