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 continue
} }
if x >= win.w { if x < win.w {
break 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 i += w - 1
if r == '\t' { if r == '\t' {