mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-16 11:58:24 +00:00
Set width to inner rect of chat box
This commit is contained in:
parent
7355364664
commit
27fdd5c562
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user