From 33fb6f0d474c380dcb90873a77ae561fdf9d3abb Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 22 Mar 2018 18:07:17 +0300 Subject: [PATCH] process ansi codes also out of screen --- ui.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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' {