From adf29bda026a44397009710921d68bc9cecdf434 Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Tue, 3 Sep 2019 20:18:02 -0700 Subject: [PATCH] Should solve tab in url issue re msg bar overflowing onto second line --- cui/screen.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cui/screen.go b/cui/screen.go index 2513a9c..75a4a2c 100644 --- a/cui/screen.go +++ b/cui/screen.go @@ -93,15 +93,14 @@ func (s *Screen) DrawMsgBars() { msg = string(bar.message[:s.Width-len(title)-3]) + "..." } _, _ = buf.WriteString(msg) - if buf.Len() < s.Width { - wsLength := s.Width - buf.Len() - _,_ = buf.WriteString(strings.Repeat(" ", wsLength)) - } - MoveCursorTo(bar.row, 1) - fmt.Print(buf.String()) + fmt.Print(strings.Repeat(" ", s.Width)) + fmt.Print("\033[0m") + MoveCursorTo(bar.row, 1) + fmt.Print("\033[7m") + fmt.Print(buf.String()) + MoveCursorTo(bar.row, s.Width) fmt.Print("\033[0m") - } }