forked from tslocum/cview
unicode.Lm characters were wrongly used as pure combining characters. Fixes #210
This commit is contained in:
parent
f93fbad8f8
commit
e432b27b03
|
@ -319,7 +319,8 @@ func (a *Application) Draw() *Application {
|
|||
|
||||
// ForceDraw refreshes the screen immediately. Use this function with caution as
|
||||
// it may lead to race conditions with updates to primitives in other
|
||||
// goroutines. It is always preferrable to use Draw() instead.
|
||||
// goroutines. It is always preferrable to use Draw() instead. Never call this
|
||||
// function from a goroutine.
|
||||
//
|
||||
// It is safe to call this function during queued updates and direct event
|
||||
// handling.
|
||||
|
|
2
util.go
2
util.go
|
@ -516,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
|
||||
|
|
Loading…
Reference in New Issue