From 27fdd5c562e5f5a83d23d2f527b8503b346708a1 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 20 Mar 2022 15:52:16 +1000 Subject: [PATCH] Set width to inner rect of chat box --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index d38267f..b006fce 100644 --- a/client.go +++ b/client.go @@ -102,11 +102,11 @@ func (cc *chatClient) updateChatBox(inCh <-chan string, app *tview.Application, } buf := &bytes.Buffer{} - + _, _, width, _ := chatBox.GetInnerRect() f := formatter.Formatter{ Writer: buf, Indent: []byte("> "), - Width: 80, + Width: width, } if _, err := f.Write([]byte(s.LiteralText())); err != nil {