From 78b6ecbcec2ca7f4a78fbcbdbb5fd6b43ed5f4e0 Mon Sep 17 00:00:00 2001 From: erroneousboat Date: Sat, 29 Jun 2019 12:24:51 +0200 Subject: [PATCH] Fix columns --- context/context.go | 2 +- handlers/event.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index 17b5e0c..007349b 100644 --- a/context/context.go +++ b/context/context.go @@ -106,7 +106,7 @@ func CreateAppContext(flgConfig string, flgToken string, flgDebug bool, version termui.Body.AddRows( termui.NewRow( termui.NewCol(config.SidebarWidth, 0, view.Channels), - termui.NewCol(config.MainWidth-1, 0, view.Chat), + termui.NewCol(config.MainWidth, 0, view.Chat), ), termui.NewRow( termui.NewCol(config.SidebarWidth, 0, view.Mode), diff --git a/handlers/event.go b/handlers/event.go index b813cff..4922ef8 100644 --- a/handlers/event.go +++ b/handlers/event.go @@ -245,6 +245,13 @@ func actionRedrawGrid(ctx *context.AppContext, threads bool, debug bool) { termui.NewCol(ctx.Config.MainWidth-6, 0, ctx.View.Debug), }..., ) + } else { + columns = append( + columns, + []*termui.Row{ + termui.NewCol(ctx.Config.MainWidth, 0, ctx.View.Chat), + }..., + ) } termui.Body.AddRows(