mirror of
https://github.com/taigrr/wtf
synced 2026-04-02 03:38:52 -07:00
Update dependencies to latest versions
This commit is contained in:
5
vendor/github.com/rivo/tview/util.go
generated
vendored
5
vendor/github.com/rivo/tview/util.go
generated
vendored
@@ -51,6 +51,9 @@ var (
|
||||
|
||||
// Package initialization.
|
||||
func init() {
|
||||
// We'll use zero width joiners.
|
||||
runewidth.ZeroWidthJoiner = true
|
||||
|
||||
// Initialize the predefined input field handlers.
|
||||
InputFieldInteger = func(text string, ch rune) bool {
|
||||
if text == "-" {
|
||||
@@ -513,7 +516,7 @@ func iterateString(text string, callback func(main rune, comb []rune, textPos, t
|
||||
}
|
||||
|
||||
for index, r := range text {
|
||||
if unicode.In(r, unicode.Lm, unicode.M) || r == '\u200d' {
|
||||
if unicode.In(r, unicode.M) || r == '\u200d' {
|
||||
lastZeroWidthJoiner = r == '\u200d'
|
||||
} else {
|
||||
// We have a rune that's not a modifier. It could be the beginning of a
|
||||
|
||||
Reference in New Issue
Block a user