only combine non-spacing mark characters

cc #565
This commit is contained in:
Gokcehan 2021-01-27 02:22:40 +03:00
parent ea1ff74e55
commit c6cf0e61ba

2
ui.go
View File

@ -211,7 +211,7 @@ func (win *win) print(screen tcell.Screen, x, y int, st tcell.Style, s string) t
for { for {
rc, wc := utf8.DecodeRuneInString(s[i+w:]) rc, wc := utf8.DecodeRuneInString(s[i+w:])
if rc == gEscapeCode || rc == '\t' || runewidth.RuneWidth(rc) != 0 { if !unicode.Is(unicode.Mn, rc) {
break break
} }
comb = append(comb, rc) comb = append(comb, rc)