process ansi codes also out of screen

This commit is contained in:
Gokcehan 2018-03-22 18:07:17 +03:00
parent 6e869bfa0e
commit 33fb6f0d47

6
ui.go
View File

@ -225,12 +225,10 @@ func (win *win) print(x, y int, fg, bg termbox.Attribute, s string) (termbox.Att
continue
}
if x >= win.w {
break
if x < win.w {
termbox.SetCell(win.x+x, win.y+y, r, fg, bg)
}
termbox.SetCell(win.x+x, win.y+y, r, fg, bg)
i += w - 1
if r == '\t' {