unicode.Lm characters were wrongly used as pure combining characters. Fixes #210

This commit is contained in:
Oliver 2018-12-25 18:55:57 +01:00
parent f93fbad8f8
commit e432b27b03
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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