1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 09:57:24 +00:00

Chat.Read() maxX/2 messages for window population

This commit is contained in:
2019-09-18 20:31:11 -04:00
parent 0f095ccbdd
commit abab975639

View File

@ -38,7 +38,8 @@ func main() {
}
func populateChat(g *gocui.Gui) {
chat := k.NewChat(channel)
if api, err := chat.Read(15); err != nil {
maxX, _ := g.Size()
if api, err := chat.Read(maxX/2); err != nil {
log.Fatal(err)
} else {
var printMe []string