From 0f1c3ef1871f311d79f8274585bdb2925152f576 Mon Sep 17 00:00:00 2001 From: citrons Date: Thu, 5 Jun 2025 19:42:46 -0500 Subject: limit size of command window preview --- client/main.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'client/main.go') diff --git a/client/main.go b/client/main.go index c9da6c3..5993cf6 100644 --- a/client/main.go +++ b/client/main.go @@ -39,7 +39,15 @@ func main() { redraw = true case <-drawTick: if redraw { - globalApp.show() + for i := 0; i < 2; i++ { + // some information takes two passes to propogate + tui.Clear() + globalApp.show() + tui.DrawLayout() + } + if tui.Present() != nil { + os.Exit(-1) + } redraw = false } case text := <-globalApp.activePaste: -- cgit v1.2.3