parent
18bf206e8c
commit
8d42bb166b
2
ui.go
2
ui.go
@ -113,7 +113,7 @@ func (win *Win) print(x, y int, fg, bg termbox.Attribute, s string) {
|
|||||||
r, w := utf8.DecodeRuneInString(s[i:])
|
r, w := utf8.DecodeRuneInString(s[i:])
|
||||||
|
|
||||||
if r == EscapeCode && i+1 < len(s) && s[i+1] == '[' {
|
if r == EscapeCode && i+1 < len(s) && s[i+1] == '[' {
|
||||||
j := strings.IndexByte(s[i:min(len(s), i+8)], 'm')
|
j := strings.IndexByte(s[i:min(len(s), i+32)], 'm')
|
||||||
|
|
||||||
if j == -1 {
|
if j == -1 {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user