diff --git a/ui.go b/ui.go index 057fc9d..25a70ce 100644 --- a/ui.go +++ b/ui.go @@ -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' {